Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 296 Bytes

File metadata and controls

12 lines (8 loc) · 296 Bytes

Declaration

To declare an annotation you use @interface followed by a type name.

@interface NonNegative {
}

We call these "annotation interfaces."1

Footnotes

  1. They share some properties with regular interfaces but it's best to think of them as their own thing.