Class ClassTypePair
- java.lang.Object
-
- org.glassfish.jersey.internal.util.collection.ClassTypePair
-
public final class ClassTypePair extends java.lang.Object
A pair of raw class and the related type.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ClassTypePair(java.lang.Class<?> c, java.lang.reflect.Type t)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClassTypePair
of(java.lang.Class<?> rawClass)
Create new type-class pair for a non-generic class.static ClassTypePair
of(java.lang.Class<?> rawClass, java.lang.reflect.Type type)
Create new type-class pair.java.lang.Class<?>
rawClass()
Get the raw class of thetype
.java.lang.reflect.Type
type()
Get the actual type behind theraw class
.
-
-
-
Method Detail
-
rawClass
public java.lang.Class<?> rawClass()
Get the raw class of thetype
.- Returns:
- raw class of the type.
-
type
public java.lang.reflect.Type type()
Get the actual type behind theraw class
.- Returns:
- the actual type behind the raw class.
-
of
public static ClassTypePair of(java.lang.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(java.lang.Class<?> rawClass, java.lang.reflect.Type type)
Create new type-class pair.- Parameters:
rawClass
- raw class representing the type.type
- type behind the class.- Returns:
- new type-class pair.
-
-