IT. Expert System.

Java Enterprise Edition (EE)

TypeLiteral


javax.enterprise.util
Class TypeLiteral<T>

java.lang.Object
  javax.enterprise.util.TypeLiteral<T>
Type Parameters:
T - the type, including all actual type parameters
All Implemented Interfaces:
java.io.Serializable
public abstract class TypeLiteral<T>
extends java.lang.Object
implements java.io.Serializable

Supports inline instantiation of objects that represent parameterized types with actual type parameters.

An object that represents any parameterized type may be obtained by subclassing TypeLiteral.

 TypeLiteral<List<String>> stringListType = new TypeLiteral<List<String>>() {};
 

Author:
Gavin King, Pete Muir
See Also:
Instance.select(TypeLiteral, Annotation...), Event.select(TypeLiteral, Annotation...), Serialized Form

Constructor Summary
protected TypeLiteral()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class<T> getRawType()
           
 java.lang.reflect.Type getType()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeLiteral

protected TypeLiteral()
Method Detail

getType

public final java.lang.reflect.Type getType()
Returns:
the actual type represented by this object

getRawType

public final java.lang.Class<T> getRawType()
Returns:
the raw type represented by this object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 15713 / 248376357. Delta: 0.02024 с