org.elasticsearch.common.inject.internal
Class MoreTypes.WildcardTypeImpl

java.lang.Object
  extended by 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

Constructor Summary
MoreTypes.WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds)
           
 
Method Summary
 boolean equals(Object other)
           
 Type[] getLowerBounds()
           
 Type[] getUpperBounds()
           
 int hashCode()
           
 boolean isFullySpecified()
          Returns true if there are no type variables in this type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MoreTypes.WildcardTypeImpl

public MoreTypes.WildcardTypeImpl(Type[] upperBounds,
                                  Type[] lowerBounds)
Method Detail

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.