| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Parameter | parameter
Record Component accessed by parameter(). |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public <A extends Annotation> Optional | findAnnotation(Class<A> annotationType)
Overrides default org. Find the first annotation of |
| public <A extends Annotation> List | findRepeatableAnnotations(Class<A> annotationType)
Overrides default org. Find all repeatable annotations of
|
| public int | getIndex()
Implements org. Get the index of the |
| public Parameter | getParameter()
Implements org. Get the |
| public Optional | getTarget()
Implements org. Get the target on which the |
| public final int | |
| public int | |
| public boolean | isAnnotated(Class<? extends Annotation> annotationType)
Overrides default org. Determine if an annotation of |
| public Parameter | |
| public Optional | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| index | back to summary |
|---|---|
| private final int index Record Component accessed by index(). | |
| parameter | back to summary |
|---|---|
| private final Parameter parameter Record Component accessed by parameter(). | |
| target | back to summary |
|---|---|
| private final Optional<Object> target Record Component accessed by target(). | |
| DefaultParameterContext | back to summary |
|---|---|
| pack-priv DefaultParameterContext(Parameter parameter, int index, Optional<Object> target) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| findAnnotation | back to summary |
|---|---|
| public <A extends Annotation> Optional Overrides default org. Doc from org. Find the first annotation of WARNINGFavor the use of this method over directly invoking annotation lookup
methods in the
| |
| findRepeatableAnnotations | back to summary |
|---|---|
| public <A extends Annotation> List Overrides default org. Doc from org. Find all repeatable annotations of
WARNINGFavor the use of this method over directly invoking annotation lookup
methods in the
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Implements org. Doc from org. Get the index of the
| |
| getParameter | back to summary |
|---|---|
| public Parameter getParameter() Implements org. Doc from org. Get the WARNINGWhen searching for annotations on the parameter in this context,
favor
| |
| getTarget | back to summary |
|---|---|
| public Optional Implements org. Doc from org. Get the target on which the
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| index | back to summary |
|---|---|
| public int index() Record Component getter of index. | |
| isAnnotated | back to summary |
|---|---|
| public boolean isAnnotated(Class<? extends Annotation> annotationType) Overrides default org. Doc from org. Determine if an annotation of Note This method does not find repeatable annotations.
To check for repeatable annotations, use WARNINGFavor the use of this method over directly invoking
| |
| parameter | back to summary |
|---|---|
| public Parameter parameter() Record Component getter of parameter. | |
| target | back to summary |
|---|---|
| public Optional Record Component getter of target. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |