Package com.google.inject.internal
Class MoreTypes.WildcardTypeImpl
- java.lang.Object
-
- com.google.inject.internal.MoreTypes.WildcardTypeImpl
-
- All Implemented Interfaces:
MoreTypes.CompositeType,java.io.Serializable,java.lang.reflect.Type,java.lang.reflect.WildcardType
- Enclosing class:
- MoreTypes
public static class MoreTypes.WildcardTypeImpl extends java.lang.Object implements java.lang.reflect.WildcardType, java.io.Serializable, MoreTypes.CompositeType
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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.TypelowerBoundprivate static longserialVersionUIDprivate java.lang.reflect.TypeupperBound
-
Constructor Summary
Constructors Constructor Description WildcardTypeImpl(java.lang.reflect.Type[] upperBounds, java.lang.reflect.Type[] lowerBounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.reflect.Type[]getLowerBounds()java.lang.reflect.Type[]getUpperBounds()inthashCode()booleanisFullySpecified()Returns true if there are no type variables in this type.java.lang.StringtoString()
-
-
-
Field Detail
-
upperBound
private final java.lang.reflect.Type upperBound
-
lowerBound
private final java.lang.reflect.Type lowerBound
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUpperBounds
public java.lang.reflect.Type[] getUpperBounds()
- Specified by:
getUpperBoundsin interfacejava.lang.reflect.WildcardType
-
getLowerBounds
public java.lang.reflect.Type[] getLowerBounds()
- Specified by:
getLowerBoundsin interfacejava.lang.reflect.WildcardType
-
isFullySpecified
public boolean isFullySpecified()
Description copied from interface:MoreTypes.CompositeTypeReturns true if there are no type variables in this type.- Specified by:
isFullySpecifiedin interfaceMoreTypes.CompositeType
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-