java.lang.Object
org.elasticsearch.common.inject.internal.MoreTypes
Static methods for working with types that we aren't publishing in the
 public 
Types API.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classThe WildcardType interface supports multiple upper bounds and multiple lower bounds.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic Typecanonicalize(Type type) Returns a type that is functionally equal but not necessarily equal according toObject.equals().static booleanReturns true ifaandbare equal.static TypegetGenericSupertype(Type type, Class<?> rawType, Class<?> toResolve) Returns the generic supertype forsupertype.static Class<?>getRawType(Type type) static intReturns the hashCode oftype.static <T> TypeLiteral<T>makeKeySafe(TypeLiteral<T> type) Returns an equivalent type that's safe for use in a key.memberType(Member member) ReturnsField.class,Method.classorConstructor.class.static TyperesolveTypeVariable(Type type, Class<?> rawType, TypeVariable<?> unknown) static StringFormats a member as concise string, such asjava.util.ArrayList.size,java.util.ArrayList<init>()orjava.util.List.remove().static String
- 
Field Details- 
EMPTY_TYPE_ARRAY
 
- 
- 
Method Details- 
makeKeySafeReturns an equivalent type that's safe for use in a key. The returned type will be free of primitive types. Type literals of primitives will return the corresponding wrapper types.- Throws:
- ConfigurationException- if- typecontains a type variable
 
- 
canonicalizeReturns a type that is functionally equal but not necessarily equal according toObject.equals().
- 
getRawType
- 
equalsReturns true ifaandbare equal.
- 
hashCodeReturns the hashCode oftype.
- 
toString
- 
memberTypeReturnsField.class,Method.classorConstructor.class.
- 
toStringFormats a member as concise string, such asjava.util.ArrayList.size,java.util.ArrayList<init>()orjava.util.List.remove().
- 
getGenericSupertypeReturns the generic supertype forsupertype. For example, given a classIntegerSet, the result for when supertype isSet.classisSet<Integer>and the result when the supertype isCollection.classisCollection<Integer>.
- 
resolveTypeVariable
 
-