- Good brief notes on:
http://tutorials.jenkov.com/java/annotations.html
youtube vid, create your own annotations ( at end of link above is also very good )
2. Also this is how you actually define your own annotation (below):
@Retention(value=RUNTIME) @Target(value={TYPE_USE,TYPE_PARAMETER}) public @interface NonNull{ }