|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.internal.util.collection.InstanceTypePair<T>
T - instance type.public final class InstanceTypePair<T>
A pair of instance and the public (official) Java type of the instance.
| Method Summary | ||
|---|---|---|
T |
instance()
Get stored instance. |
|
T |
left()
Left-hand instance in the Pair. |
|
static
|
of(T instance)
Create new instance-type pair from an instance. |
|
static
|
of(T instance,
Type type)
Create new instance-type pair from an instance. |
|
static
|
of(T instance,
org.glassfish.hk2.TypeLiteral<T> type)
Create new instance-type pair from an instance. |
|
Type |
right()
Right-hand instance in the Pair. |
|
String |
toString()
|
|
Type |
type()
Get the public type of the stored instance. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public T left()
PairPair.
left in interface Pair<T,Type>Pairpublic Type right()
PairPair.
right in interface Pair<T,Type>Pairpublic T instance()
public Type type()
public String toString()
toString in class Objectpublic static <T> InstanceTypePair<T> of(T instance)
T - instance type.instance - instance.
public static <T> InstanceTypePair<T> of(T instance,
org.glassfish.hk2.TypeLiteral<T> type)
T - instance type.instance - instance.type - type literal representing the generic public type of the instance.
public static <T> InstanceTypePair<T> of(T instance,
Type type)
T - instance type.instance - instance.type - public type of the instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||