standardRepeatables() method provides a default
strategy that respects Java's @Repeatable support and
should be suitable for most situations.
The of method can be used to register relationships for
annotations that do not wish to use @Repeatable.
To completely disable repeatable support use none().
| Modifier and Type | Class and Description |
|---|---|
| private static class | RepeatableContainers.ExplicitRepeatableContainer
A single explicit mapping. |
| private static class | RepeatableContainers.NoRepeatableContainers
No repeatable containers. |
| private static class | RepeatableContainers.StandardRepeatableContainers
Standard |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Map | |
| private final RepeatableContainers |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public RepeatableContainers | Returns: a newRepeatableContainers instancethe container annotation type container, Class<? extends Annotation> the repeatable annotation type repeatable)Add an additional explicit relationship between a container and repeatable annotation. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| pack-priv Annotation[] | |
| public int | |
| public static RepeatableContainers | Returns: aRepeatableContainers instanceCreate a |
| public static RepeatableContainers | Returns: aRepeatableContainers instancethe repeatable annotation type repeatable, Class<? extends Annotation> the container annotation type or container)null. If specified,
this annotation must declare a value attribute returning an array
of repeatable annotations. If not specified, the container will be
deduced by inspecting the @Repeatable annotation on
repeatable.Create a |
| public static RepeatableContainers | Returns: aRepeatableContainers instanceCreate a |
| cache | back to summary |
|---|---|
| pack-priv static final Map<Class<? extends Annotation>, Object> cache | |
| parent | back to summary |
|---|---|
| private final RepeatableContainers parent
| |
| RepeatableContainers | back to summary |
|---|---|
| private RepeatableContainers(RepeatableContainers parent) | |
| and | back to summary |
|---|---|
| public RepeatableContainers and(Class<? extends Annotation> container, Class<? extends Annotation> repeatable) Add an additional explicit relationship between a container and repeatable annotation. Warning the arguments supplied to this method are in the reverse order
of those supplied to
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| findRepeatedAnnotations | back to summary |
|---|---|
pack-priv Annotation[] findRepeatedAnnotations(Annotation annotation)
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| none | back to summary |
|---|---|
| public static RepeatableContainers none() Create a
| |
| of | back to summary |
|---|---|
| public static RepeatableContainers of(Class<? extends Annotation> repeatable, Class<? extends Annotation> container) Create a Warning the arguments supplied to this method are in the reverse order
of those supplied to
| |
| standardRepeatables | back to summary |
|---|---|
| public static RepeatableContainers standardRepeatables() Create a
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final Class | |
| private final Method |
| Access | Constructor and Description |
|---|---|
| pack-priv | ExplicitRepeatableContainer(RepeatableContainers parent, Class<? extends Annotation> repeatable, Class<? extends Annotation> container)
|
| Modifier and Type | Method and Description |
|---|---|
| private Class | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides org. |
| pack-priv Annotation[] | |
| public int | hashCode()
Overrides org. |
| container | back to summary |
|---|---|
| private final Class<? extends Annotation> container | |
| repeatable | back to summary |
|---|---|
| private final Class<? extends Annotation> repeatable | |
| valueMethod | back to summary |
|---|---|
| private final Method valueMethod | |
| ExplicitRepeatableContainer | back to summary |
|---|---|
| pack-priv ExplicitRepeatableContainer(RepeatableContainers parent, Class<? extends Annotation> repeatable, Class<? extends Annotation> container) | |
| deduceContainer | back to summary |
|---|---|
| private Class | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| findRepeatedAnnotations | back to summary |
|---|---|
| pack-priv Annotation[] findRepeatedAnnotations(Annotation annotation) Overrides org. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final RepeatableContainers. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| INSTANCE | back to summary |
|---|---|
| private static final RepeatableContainers. | |
| NoRepeatableContainers | back to summary |
|---|---|
| pack-priv NoRepeatableContainers() | |
RepeatableContainers implementation that searches using
Java's @Repeatable annotation.
| Modifier and Type | Field and Description |
|---|---|
| private static final RepeatableContainers. | |
| private static final Object |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static Object | |
| pack-priv Annotation[] | |
| private static Method |
| INSTANCE | back to summary |
|---|---|
| private static final RepeatableContainers. | |
| NONE | back to summary |
|---|---|
| private static final Object NONE | |
| StandardRepeatableContainers | back to summary |
|---|---|
| pack-priv StandardRepeatableContainers() | |
| computeRepeatedAnnotationsMethod | back to summary |
|---|---|
| private static Object computeRepeatedAnnotationsMethod(Class<? extends Annotation> annotationType) | |
| findRepeatedAnnotations | back to summary |
|---|---|
| pack-priv Annotation[] findRepeatedAnnotations(Annotation annotation) Overrides org. | |
| getRepeatedAnnotationsMethod | back to summary |
|---|---|
private static Method getRepeatedAnnotationsMethod(Class<? extends Annotation> annotationType)
| |