public class WildcardTypeImpl extends Object implements WildcardType
WildcardType.
Per JLS a wildcard may define either the upper bound or the lower bound. A wildcard may not have multiple bounds.| Modifier and Type | Method and Description |
|---|---|
static WildcardType |
defaultInstance() |
Type[] |
getLowerBounds() |
Type[] |
getUpperBounds() |
static WildcardType |
withLowerBound(Type type) |
static WildcardType |
withUpperBound(Type type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeNamepublic static WildcardType defaultInstance()
public static WildcardType withUpperBound(Type type)
public static WildcardType withLowerBound(Type type)
public Type[] getUpperBounds()
getUpperBounds in interface WildcardTypepublic Type[] getLowerBounds()
getLowerBounds in interface WildcardTypeCopyright © 2015. All Rights Reserved.