org.elasticsearch.common.inject.internal
Class MoreTypes.WildcardTypeImpl
java.lang.Object
org.elasticsearch.common.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
MoreTypes.WildcardTypeImpl
public MoreTypes.WildcardTypeImpl(Type[] upperBounds,
Type[] lowerBounds)
getUpperBounds
public Type[] getUpperBounds()
- Specified by:
getUpperBounds
in interface WildcardType
getLowerBounds
public Type[] getLowerBounds()
- Specified by:
getLowerBounds
in interface WildcardType
isFullySpecified
public boolean isFullySpecified()
- Returns true if there are no type variables in this type.
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012. All Rights Reserved.