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 Details

    • rawClass

      public Class<?> rawClass()
      Get the raw class of the type.
      Returns:
      raw class of the type.
    • type

      public Type type()
      Get the actual type behind the raw 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.