public class WildcardTypeImpl extends Object implements WildcardType
WildcardType.| Constructor and Description |
|---|
WildcardTypeImpl(Type[] upperBounds,
Type[] lowerBounds)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Type[] |
getLowerBounds() |
Type[] |
getUpperBounds() |
int |
hashCode() |
static WildcardType |
newUnboundedWildcard()
Creates a new unbounded wildcard "?", as returned by the JRE (upper bound is set to Object.class).
|
static WildcardType |
newWildcardExtends(Type upperBound)
Creates a new wildcard type "? extends T", where T is the given upperBound.
|
static WildcardType |
newWildcardSuper(Type lowerBound)
Creates a new wildcard type "? super T", where T is the given lowerBound.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNamepublic static WildcardType newWildcardExtends(Type upperBound)
upperBound - the upper boundpublic static WildcardType newWildcardSuper(Type lowerBound)
lowerBound - the lower boundpublic static WildcardType newUnboundedWildcard()
public Type[] getUpperBounds()
getUpperBounds in interface WildcardTypepublic Type[] getLowerBounds()
getLowerBounds in interface WildcardTypeCopyright © 2023. All rights reserved.