Package com.google.inject.internal
Class MoreTypes.WildcardTypeImpl
- java.lang.Object
-
- com.google.inject.internal.MoreTypes.WildcardTypeImpl
-
- All Implemented Interfaces:
Serializable
,Type
,WildcardType
- Enclosing class:
- MoreTypes
public static class MoreTypes.WildcardTypeImpl extends Object implements WildcardType, Serializable
The WildcardType interface supports multiple upper bounds and multiple lower bounds. We only support what the Java 6 language needs - at most one bound. If a lower bound is set, the upper bound must be Object.class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Type[]
getLowerBounds()
Type[]
getUpperBounds()
int
hashCode()
boolean
isFullySpecified()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
-
-
-
Method Detail
-
getUpperBounds
public Type[] getUpperBounds()
- Specified by:
getUpperBounds
in interfaceWildcardType
-
getLowerBounds
public Type[] getLowerBounds()
- Specified by:
getLowerBounds
in interfaceWildcardType
-
isFullySpecified
public boolean isFullySpecified()
-
-