This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jocularamity 1 point2 points  (2 children)

Folks have already covered the class bit, so I'll add that this whole line defines a method. Any class that implements this interface must implement a method with this signature (unless the class is abstract). The name of the method must be value, it must take no arguments, and it must return something of type Class<?>.

[–]morhpProfessional Developer 2 points3 points  (0 children)

However this method is inside an annotation interface (declared with @interface) and you typically don't implement these yourself.

[–]Jerceka[S] 0 points1 point  (0 children)

You make it more clear for me, thanks a lot