Class ClassTypePair
- java.lang.Object
-
- org.glassfish.jersey.internal.util.collection.ClassTypePair
-
public final class ClassTypePair extends Object
A pair of raw class and the related type.- Author:
- Marek Potociar
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClassTypePairof(Class<?> rawClass)Create new type-class pair for a non-generic class.static ClassTypePairof(Class<?> rawClass, Type type)Create new type-class pair.Class<?>rawClass()Get the raw class of thetype.Typetype()Get the actual type behind theraw class.
-
-
-
Method Detail
-
type
public Type type()
Get the actual type behind theraw class.- Returns:
- the actual type behind the raw class.
-
of
public static ClassTypePair of(Class<?> rawClass)
Create new type-class pair for a non-generic class.- Parameters:
rawClass- (raw) class representing the non-generic type.- Returns:
- new non-generic type-class pair.
-
of
public static ClassTypePair of(Class<?> rawClass, Type type)
Create new type-class pair.- Parameters:
rawClass- raw class representing the type.type- type behind the class.- Returns:
- new type-class pair.
-
-