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, wait
getTypeName
public static WildcardType defaultInstance()
public static WildcardType withUpperBound(Type type)
public static WildcardType withLowerBound(Type type)
public Type[] getUpperBounds()
getUpperBounds
in interface WildcardType
public Type[] getLowerBounds()
getLowerBounds
in interface WildcardType
Copyright © 2016. All rights reserved.