org.glassfish.jersey.internal.util.collection
Class ClassTypePair

java.lang.Object
  extended by 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 (marek.potociar at oracle.com)

Method Summary
static ClassTypePair of(Class<?> rawClass)
          Create new type-class pair for a non-generic class.
static ClassTypePair of(Class<?> rawClass, Type type)
          Create new type-class pair.
 Class<?> rawClass()
          Get the raw class of the type.
 Type type()
          Get the actual type behind the raw class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.