public static < D , V > AnnotationId < D , V > get ( TypeId < D > declaringType , TypeId < V > type , ElementType annotatedElement ) { if ( annotatedElement != ElementType . TYPE && annotatedElement != ElementType . METHOD && annotatedElement != ElementType . FIELD && annotatedElement != ElementType . PARAMETER ) { throw new IllegalArgumentException ( "element type is not supported to annotate yet." ) ; } return new AnnotationId <> ( declaringType , type , annotatedElement ) ; }
Construct an instance . It initially contains no elements .