| Modifier and Type | Class and Description |
|---|---|
| public static class | WildcardType.Builder
Convenient builder for |
| Modifier and Type | Field and Description |
|---|---|
| private final Type | |
| private int | |
| private final boolean | |
| public static final WildcardType | UNBOUNDED
A wildcard without a bound, an equivalent of |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public WildcardType | asWildcardType()
Overrides org. org. and returns it if the kind is
Kind#WILDCARD_TYPE.
|
| pack-priv Type | |
| public static WildcardType. | |
| pack-priv Type | |
| pack-priv Type | |
| public static WildcardType | Returns: the new instancethe bound (lower or upper) bound, boolean true if the bound is an upper (extends) bound, false if lower (super) isExtends)
Deprecated
use
Creates a new wildcard type.
createUpperBound(Type) or createLowerBound(Type) instead
|
| public static WildcardType | Returns: the new instancethe lower bound lowerBound)Create a new wildcard type with a lower bound. |
| public static WildcardType | Returns: the new instancethe lower bound lowerBound)Create a new wildcard type with a lower bound. |
| public static WildcardType | Returns: the new instancethe upper bound upperBound)Create a new wildcard type with an upper bound. |
| public static WildcardType | Returns: the new instancethe upper bound upperBound)Create a new wildcard type with an upper bound. |
| public boolean | equals(Object
the type to compare to o)Overrides org. Type with another type.
|
| public Type | Returns: the upper bound, orObject if this wildcard has a lower boundReturns the upper bound of this wildcard (e.g. |
| public int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv boolean | |
| public Type. | |
| public DotName | name()
Overrides org. DotName,
using the Class#getName() format.
|
| public Type | Returns: the lower bound, ornull if this wildcard has an uper boundReturns the lower bound of this wildcard (e.g. |
| pack-priv String |
| bound | back to summary |
|---|---|
| private final Type bound | |
| hash | back to summary |
|---|---|
| private int hash | |
| isExtends | back to summary |
|---|---|
| private final boolean isExtends | |
| UNBOUNDED | back to summary |
|---|---|
| public static final WildcardType UNBOUNDED A wildcard without a bound, an equivalent of
| |
| WildcardType | back to summary |
|---|---|
| pack-priv WildcardType(Type bound, boolean isExtends) | |
| WildcardType | back to summary |
|---|---|
| pack-priv WildcardType(Type bound, boolean isExtends, AnnotationInstance[] annotations) | |
| asWildcardType | back to summary |
|---|---|
| public WildcardType asWildcardType() Overrides org. Doc from org. Casts this type to a
| |
| bound | back to summary |
|---|---|
| pack-priv Type bound() | |
| builder | back to summary |
|---|---|
| public static WildcardType. Create a builder of a wildcard type.
| |
| copyType | back to summary |
|---|---|
| pack-priv Type copyType(AnnotationInstance[] newAnnotations) Implements abstract org.
| |
| copyType | back to summary |
|---|---|
| pack-priv Type copyType(Type bound) | |
| create | back to summary |
|---|---|
| public static WildcardType create(Type bound, boolean isExtends)
Deprecated use Creates a new wildcard type.
| |
| createLowerBound | back to summary |
|---|---|
| public static WildcardType createLowerBound(Type lowerBound) Create a new wildcard type with a lower bound.
| |
| createLowerBound | back to summary |
|---|---|
| public static WildcardType createLowerBound(Class<?> lowerBound) Create a new wildcard type with a lower bound.
| |
| createUpperBound | back to summary |
|---|---|
| public static WildcardType createUpperBound(Type upperBound) Create a new wildcard type with an upper bound.
| |
| createUpperBound | back to summary |
|---|---|
| public static WildcardType createUpperBound(Class<?> upperBound) Create a new wildcard type with an upper bound.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides org. Doc from org. Compares this | |
| extendsBound | back to summary |
|---|---|
| public Type extendsBound() Returns the upper bound of this wildcard (e.g.
Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from org. Computes a hash code representing this type.
| |
| hasImplicitObjectBound | back to summary |
|---|---|
| pack-priv boolean hasImplicitObjectBound() | |
| internEquals | back to summary |
|---|---|
| pack-priv boolean internEquals(Object o) Overrides org.
| |
| internHashCode | back to summary |
|---|---|
| pack-priv int internHashCode() Overrides org.
| |
| isExtends | back to summary |
|---|---|
| pack-priv boolean isExtends() | |
| kind | back to summary |
|---|---|
| public Type. Implements abstract org. Doc from org. Returns the kind of Type this is. | |
| name | back to summary |
|---|---|
| public DotName name() Overrides org. Doc from org. Returns the name of this type (or its erasure in case of generic types) as a
| |
| superBound | back to summary |
|---|---|
| public Type superBound() Returns the lower bound of this wildcard (e.g.
Returns
| |
| toString | back to summary |
|---|---|
| pack-priv String toString(boolean simple) Overrides org.
| |
WildcardType.
Note that only one bound may be set. If the setUpperBound() and
setLowerBound() methods are called multiple times, only the last
call is taken into account; the previously set bounds are ignored.
| Modifier and Type | Field and Description |
|---|---|
| private Type | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public WildcardType | |
| public WildcardType. | Returns: this builderthe class whose type is set as the lower bound, must not be lowerBound)nullSets the lower bound. |
| public WildcardType. | Returns: this builderthe lower bound, must not be lowerBound)nullSets the lower bound. |
| public WildcardType. | Returns: this builderthe class whose type is set as the upper bound, must not be upperBound)nullSets the upper bound. |
| public WildcardType. | Returns: this builderthe upper bound, must not be upperBound)nullSets the upper bound. |
| bound | back to summary |
|---|---|
| private Type bound | |
| isExtends | back to summary |
|---|---|
| private boolean isExtends | |
| Builder | back to summary |
|---|---|
| pack-priv Builder() | |
| build | back to summary |
|---|---|
| public WildcardType build() Returns the built wildcard type.
| |
| setLowerBound | back to summary |
|---|---|
| public WildcardType. Sets the lower bound.
| |
| setLowerBound | back to summary |
|---|---|
| public WildcardType. Sets the lower bound.
| |
| setUpperBound | back to summary |
|---|---|
| public WildcardType. Sets the upper bound.
| |
| setUpperBound | back to summary |
|---|---|
| public WildcardType. Sets the upper bound.
| |