Package org.jboss.jandex
Class JandexReflection.WildcardTypeImpl
- java.lang.Object
-
- org.jboss.jandex.JandexReflection.WildcardTypeImpl
-
- All Implemented Interfaces:
java.lang.reflect.Type,java.lang.reflect.WildcardType
- Enclosing class:
- JandexReflection
private static class JandexReflection.WildcardTypeImpl extends java.lang.Object implements java.lang.reflect.WildcardTypeAn implementation ofWildcardTypethat is compatible with the JDK's implementation (as in, theequals()andhashCode()methods work as expected).
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.reflect.Type[]DEFAULT_LOWER_BOUNDprivate static java.lang.reflect.Type[]DEFAULT_UPPER_BOUNDprivate java.lang.reflect.Type[]lowerBoundprivate static java.lang.reflect.WildcardTypeUNBOUNDEDprivate java.lang.reflect.Type[]upperBound
-
Constructor Summary
Constructors Modifier Constructor Description privateWildcardTypeImpl(java.lang.reflect.Type[] upperBound, java.lang.reflect.Type[] lowerBound)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.reflect.Type[]getLowerBounds()java.lang.reflect.Type[]getUpperBounds()inthashCode()java.lang.StringtoString()(package private) static java.lang.reflect.WildcardTypeunbounded()(package private) static java.lang.reflect.WildcardTypewithLowerBound(java.lang.reflect.Type type)(package private) static java.lang.reflect.WildcardTypewithUpperBound(java.lang.reflect.Type type)
-
-
-
Field Detail
-
DEFAULT_UPPER_BOUND
private static final java.lang.reflect.Type[] DEFAULT_UPPER_BOUND
-
DEFAULT_LOWER_BOUND
private static final java.lang.reflect.Type[] DEFAULT_LOWER_BOUND
-
UNBOUNDED
private static final java.lang.reflect.WildcardType UNBOUNDED
-
upperBound
private final java.lang.reflect.Type[] upperBound
-
lowerBound
private final java.lang.reflect.Type[] lowerBound
-
-
Method Detail
-
unbounded
static java.lang.reflect.WildcardType unbounded()
-
withUpperBound
static java.lang.reflect.WildcardType withUpperBound(java.lang.reflect.Type type)
-
withLowerBound
static java.lang.reflect.WildcardType withLowerBound(java.lang.reflect.Type type)
-
getUpperBounds
public java.lang.reflect.Type[] getUpperBounds()
- Specified by:
getUpperBoundsin interfacejava.lang.reflect.WildcardType
-
getLowerBounds
public java.lang.reflect.Type[] getLowerBounds()
- Specified by:
getLowerBoundsin interfacejava.lang.reflect.WildcardType
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-