public abstract class RepeatableContainers extends ObjectSE
standardRepeatables()
メソッドは、Java の @Repeatable
SE サポートを考慮するデフォルトの戦略を提供し、ほとんどの状況に適しています。of(java.lang.Class<? extends java.lang.annotation.Annotation>, java.lang.Class<? extends java.lang.annotation.Annotation>)
メソッドを使用して、@Repeatable
SE を使用したくないアノテーションの関連を登録できます。
繰り返し可能なサポートを完全に無効にするには、none()
を使用します。
修飾子と型 | メソッドと説明 |
---|---|
RepeatableContainers | and(ClassSE<? extends AnnotationSE> container, ClassSE<? extends AnnotationSE> repeatable) 含まれるアノテーションと繰り返し可能なアノテーションの間に明示的な関連を追加します。 |
boolean | equals(ObjectSE other) |
int | hashCode() |
static RepeatableContainers | none() 繰り返し可能なアノテーションを展開しない RepeatableContainers インスタンスを作成します。 |
static RepeatableContainers | of(ClassSE<? extends AnnotationSE> repeatable, ClassSE<? extends AnnotationSE> container) 定義済みのコンテナーと繰り返し可能な型を使用する RepeatableContainers インスタンスを作成します。 |
static RepeatableContainers | standardRepeatables() Java の @Repeatable SE アノテーションを使用して検索する RepeatableContainers インスタンスを作成します。 |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public RepeatableContainers and(ClassSE<? extends AnnotationSE> container, ClassSE<? extends AnnotationSE> repeatable)
container
- コンテナー型 repeatable
- 含まれる繰り返し可能な型 RepeatableContainers
インスタンス public int hashCode()
ObjectSE
の hashCodeSE
public static RepeatableContainers standardRepeatables()
@Repeatable
SE アノテーションを使用して検索する RepeatableContainers
インスタンスを作成します。RepeatableContainers
インスタンス public static RepeatableContainers of(ClassSE<? extends AnnotationSE> repeatable, @Nullable ClassSE<? extends AnnotationSE> container)
RepeatableContainers
インスタンスを作成します。repeatable
- 含まれる繰り返し可能なアノテーション container
- コンテナーのアノテーションまたは null
。指定する場合、このアノテーションは、繰り返し可能なアノテーションの配列を返す value
属性を宣言する必要があります。指定しない場合、コンテナーは repeatable
の @Repeatable
アノテーションをインスペクションすることにより推定されます。RepeatableContainers
インスタンス public static RepeatableContainers none()
RepeatableContainers
インスタンスを作成します。RepeatableContainers
インスタンス