public class WildcardTypes
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasUpperBound(java.lang.reflect.WildcardType wildcard) |
static java.lang.reflect.WildcardType |
wildcard()
Create an unbounded wildcard type.
|
static java.lang.reflect.WildcardType |
wildcardExtending(java.util.Collection<? extends java.lang.reflect.Type> bounds)
Create an upper bounded wildcard type.
|
static java.lang.reflect.WildcardType |
wildcardExtending(java.lang.reflect.Type... bounds)
Create an upper bounded wildcard type.
|
static java.lang.reflect.WildcardType |
wildcardSuper(java.util.Collection<? extends java.lang.reflect.Type> bounds)
Create an lower bounded wildcard type.
|
static java.lang.reflect.WildcardType |
wildcardSuper(java.lang.reflect.Type... bounds)
Create an lower bounded wildcard type.
|
public static java.lang.reflect.WildcardType wildcard()
WildcardType
representing an unbounded
wildcard.public static java.lang.reflect.WildcardType wildcardSuper(java.lang.reflect.Type... bounds)
bounds
- The types we wish form the lower bounds for a wildcard.WildcardType
representing a wildcard with the
given lower bound.public static java.lang.reflect.WildcardType wildcardSuper(java.util.Collection<? extends java.lang.reflect.Type> bounds)
bounds
- The types we wish form the lower bounds for a wildcard.WildcardType
representing a wildcard with the
given lower bound.public static java.lang.reflect.WildcardType wildcardExtending(java.lang.reflect.Type... bounds)
bounds
- The types we wish form the upper bounds for a wildcard.WildcardType
representing a wildcard with the
given upper bound.public static java.lang.reflect.WildcardType wildcardExtending(java.util.Collection<? extends java.lang.reflect.Type> bounds)
bounds
- The types we wish form the upper bounds for a wildcard.WildcardType
representing a wildcard with the
given upper bound.public static boolean hasUpperBound(java.lang.reflect.WildcardType wildcard)
wildcard
- the wildcard to testObject