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.WildcardType
An implementation ofWildcardType
that 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_BOUND
private static java.lang.reflect.Type[]
DEFAULT_UPPER_BOUND
private java.lang.reflect.Type[]
lowerBound
private static java.lang.reflect.WildcardType
UNBOUNDED
private java.lang.reflect.Type[]
upperBound
-
Constructor Summary
Constructors Modifier Constructor Description private
WildcardTypeImpl(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 boolean
equals(java.lang.Object obj)
java.lang.reflect.Type[]
getLowerBounds()
java.lang.reflect.Type[]
getUpperBounds()
int
hashCode()
java.lang.String
toString()
(package private) static java.lang.reflect.WildcardType
unbounded()
(package private) static java.lang.reflect.WildcardType
withLowerBound(java.lang.reflect.Type type)
(package private) static java.lang.reflect.WildcardType
withUpperBound(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:
getUpperBounds
in interfacejava.lang.reflect.WildcardType
-
getLowerBounds
public java.lang.reflect.Type[] getLowerBounds()
- Specified by:
getLowerBounds
in interfacejava.lang.reflect.WildcardType
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-