Top Description Inners Constructors Methods
org.joda.convert

pack-priv final Class Types

extends Object
Class Inheritance
Imports
java.io.Serializable, java.lang.reflect.AnnotatedElement, .Array, .GenericArrayType, .GenericDeclaration, .InvocationHandler, .InvocationTargetException, .Method, .ParameterizedType, .Proxy, .Type, .TypeVariable, .WildcardType, java.security.AccessControlException, java.util.ArrayList, .Arrays, .Collection, .HashSet, .LinkedHashMap, .List, .Map, .Set, java.util.concurrent.atomic.AtomicReference

Utilities for working with Type.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
Types.ClassOwnership

Decides what owner type to use for constructing ParameterizedType from a raw class.

private static class
pack-priv static enum
pack-priv static class
Types.NativeTypeVariableEquals<X>

Per issue 1635, In JDK 1.7.0_51-b13, TypeVariableImpl#equals(Object) is changed to no longer be equal to custom TypeVariable implementations.

private static class
private static class
private static class
Types.TypeVariableInvocationHandler

Invocation handler to work around a compatibility problem between Java 7 and Java 8.

private abstract static class
Types.TypeVisitor

Visitor pattern to evaluate Type.

pack-priv static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
checkArgument(boolean expression)

private static void
checkArgument(boolean expression, Object errorMessage)

pack-priv static void
checkArgument(boolean expression, String errorMessageTemplate, Object... errorMessageArgs)

private static <T> T
checkNotNull(T reference)

private static void
private static boolean
equal(Object obj1, Object obj2)

private static List<Type>
private static String
format(String template, Object... args)

pack-priv static Class<?>
getArrayClass(Class<?> componentType)

Returns the Class object of arrays with componentType.

pack-priv static Type
pack-priv static Type
newArrayType(Type componentType)

Returns the array type of componentType.

pack-priv static <D extends GenericDeclaration> TypeVariable<D>
newArtificialTypeVariable(D declaration, String name, Type... bounds)

Returns a new TypeVariable that belongs to declaration with name and bounds.

pack-priv static ParameterizedType
newParameterizedType(Class<?> rawType, Type... arguments)

Returns a type where rawType is parameterized by arguments.

pack-priv static ParameterizedType
newParameterizedTypeWithOwner(Type ownerType, Class<?> rawType, Type... arguments)

Returns a type where rawType is parameterized by arguments and is owned by ownerType.

private static <T> T
newProxy(Class<T> interfaceType, InvocationHandler handler)

private static <D extends GenericDeclaration> TypeVariable<D>
newTypeVariableImpl(D genericDeclaration, String name, Type[] bounds)

pack-priv static WildcardType
subtypeOf(Type upperBound)

Returns a new WildcardType with upperBound.

private static Type
subtypeOfComponentType(Type[] bounds)

Returns ?

pack-priv static WildcardType
supertypeOf(Type lowerBound)

Returns a new WildcardType with lowerBound.

private static Type[]
pack-priv static String
toString(Type type)

Returns human readable string representation of type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait