public final class AnnotatedWildcardTypes
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AnnotatedWildcardTypes.AnnotatedWildcardTypeInternal |
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.AnnotatedWildcardType |
over(java.lang.reflect.WildcardType type,
java.lang.annotation.Annotation... annotations)
Create a new annotated wildcard type over the given wildcard type.
|
static java.lang.reflect.AnnotatedWildcardType |
over(java.lang.reflect.WildcardType type,
java.util.Collection<java.lang.annotation.Annotation> annotations)
Create a new annotated wildcard type over the given wildcard type.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcard(java.lang.annotation.Annotation... annotations)
Create an unbounded annotated wildcard type with the given annotations.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcard(java.util.Collection<java.lang.annotation.Annotation> annotations)
Create an unbounded annotated wildcard type with the given annotations.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcardExtending(java.lang.reflect.AnnotatedType... bounds)
Create an upper bounded annotated wildcard type.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcardExtending(java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
Create an upper bounded annotated wildcard type.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcardExtending(java.util.Collection<java.lang.annotation.Annotation> annotations,
java.lang.reflect.AnnotatedType... bounds)
Create an upper bounded annotated wildcard type with the given annotations.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcardExtending(java.util.Collection<java.lang.annotation.Annotation> annotations,
java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
Create an upper bounded annotated wildcard type with the given annotations.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcardSuper(java.lang.reflect.AnnotatedType... bounds)
Create a lower bounded annotated wildcard type.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcardSuper(java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
Create a lower bounded annotated wildcard type.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcardSuper(java.util.Collection<java.lang.annotation.Annotation> annotations,
java.lang.reflect.AnnotatedType... bounds)
Create a lower bounded annotated wildcard type with the given annotations.
|
static java.lang.reflect.AnnotatedWildcardType |
wildcardSuper(java.util.Collection<java.lang.annotation.Annotation> annotations,
java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
Create a lower bounded annotated wildcard type with the given annotations.
|
static java.lang.reflect.AnnotatedWildcardType |
wrap(java.lang.reflect.AnnotatedWildcardType type)
Wrap an existing annotated wildcard type.
|
protected static AnnotatedWildcardTypes.AnnotatedWildcardTypeInternal |
wrapImpl(Isomorphism isomorphism,
java.lang.reflect.AnnotatedWildcardType type) |
public static java.lang.reflect.AnnotatedWildcardType over(java.lang.reflect.WildcardType type, java.lang.annotation.Annotation... annotations)
type
- The wildcard over which to create an annotated wildcard type.annotations
- The annotations to put on the new type.public static java.lang.reflect.AnnotatedWildcardType over(java.lang.reflect.WildcardType type, java.util.Collection<java.lang.annotation.Annotation> annotations)
type
- The wildcard over which to create an annotated wildcard type.annotations
- The annotations to put on the new type.public static java.lang.reflect.AnnotatedWildcardType wildcard(java.lang.annotation.Annotation... annotations)
annotations
- The annotations to be contained by the new annotated type.AnnotatedWildcardType
representing an
unbounded wildcard.public static java.lang.reflect.AnnotatedWildcardType wildcard(java.util.Collection<java.lang.annotation.Annotation> annotations)
annotations
- The annotations to be contained by the new annotated type.AnnotatedWildcardType
representing an
unbounded wildcard.public static java.lang.reflect.AnnotatedWildcardType wildcardSuper(java.util.Collection<java.lang.annotation.Annotation> annotations, java.lang.reflect.AnnotatedType... bounds)
annotations
- The annotations to be contained by the new annotated type.bounds
- The types we wish form the lower bounds for a wildcard.AnnotatedWildcardType
representing a
wildcard with the given lower bound.public static java.lang.reflect.AnnotatedWildcardType wildcardSuper(java.util.Collection<java.lang.annotation.Annotation> annotations, java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
annotations
- the annotations to be contained by the new annotated typebounds
- the types we wish form the lower bounds for a wildcardAnnotatedWildcardType
representing a
wildcard with the given lower bound.\public static java.lang.reflect.AnnotatedWildcardType wildcardSuper(java.lang.reflect.AnnotatedType... bounds)
bounds
- the types we wish form the lower bounds for a wildcardAnnotatedWildcardType
representing a
wildcard with the given lower boundpublic static java.lang.reflect.AnnotatedWildcardType wildcardSuper(java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
bounds
- the types we wish form the lower bounds for a wildcardAnnotatedWildcardType
representing a
wildcard with the given lower boundpublic static java.lang.reflect.AnnotatedWildcardType wildcardExtending(java.util.Collection<java.lang.annotation.Annotation> annotations, java.lang.reflect.AnnotatedType... bounds)
annotations
- The annotations to be contained by the new annotated type.bounds
- The types we wish form the upper bounds for a wildcard.AnnotatedWildcardType
representing a
wildcard with the given upper bound.public static java.lang.reflect.AnnotatedWildcardType wildcardExtending(java.util.Collection<java.lang.annotation.Annotation> annotations, java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
annotations
- The annotations to be contained by the new annotated type.bounds
- The types we wish form the upper bounds for a wildcard.AnnotatedWildcardType
representing a
wildcard with the given upper bound.public static java.lang.reflect.AnnotatedWildcardType wildcardExtending(java.lang.reflect.AnnotatedType... bounds)
bounds
- The types we wish form the upper bounds for a wildcard.AnnotatedWildcardType
representing a
wildcard with the given upper bound.public static java.lang.reflect.AnnotatedWildcardType wildcardExtending(java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
bounds
- The types we wish form the upper bounds for a wildcard.AnnotatedWildcardType
representing a
wildcard with the given upper bound.protected static AnnotatedWildcardTypes.AnnotatedWildcardTypeInternal wrapImpl(Isomorphism isomorphism, java.lang.reflect.AnnotatedWildcardType type)
public static java.lang.reflect.AnnotatedWildcardType wrap(java.lang.reflect.AnnotatedWildcardType type)
type
- The type we wish to wrap.AnnotatedWildcardType
which is equal to
the given type.