|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.type.AbstractType<T>
T
- the type.public abstract class AbstractType<T>
The AbstractType
is the default implementation of IType
.
Field Summary |
---|
Fields inherited from interface javax.rad.type.IType |
---|
UNKNOWN_TYPE |
Constructor Summary | |
---|---|
AbstractType()
|
Method Summary | |
---|---|
boolean |
equals(T pObject1,
Object pObject2)
Returns true, if the two objects are equal. |
static IType<?> |
getTypeFromClass(Class<?> pClass)
Gets the type for a Class. |
static IType<?> |
getTypeFromObject(Object pObject)
Gets the type for an Object. |
int |
hashCode(T pObject)
Returns the hash code of the given object. |
static void |
registerType(IType<?> pType)
Registers a type. |
String |
toString(T pObject)
Converts the object to a String. |
T |
validatedValueOf(Object pObject)
Converts the object to an Object which is an instance of type class. |
T |
valueOf(Object pObject)
Converts the object to an Object which is an instance of type class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.rad.type.IType |
---|
compareTo, getTypeClass |
Constructor Detail |
---|
public AbstractType()
Method Detail |
---|
public T valueOf(Object pObject)
Object
which is an instance of type class.
valueOf
in interface IType<T>
pObject
- the Object
to convert
Object
which is an instance of type class.public T validatedValueOf(Object pObject)
Object
which is an instance of type class.
validatedValueOf
in interface IType<T>
pObject
- the Object
to convert
Object
which is an instance of type class.public int hashCode(T pObject)
hashCode
in interface IType<T>
pObject
- the object.
public boolean equals(T pObject1, Object pObject2)
equals
in interface IType<T>
pObject1
- the first object.pObject2
- the second object.
public String toString(T pObject)
toString
in interface IType<T>
pObject
- the object.
String
representation of the Object
.public static void registerType(IType<?> pType)
pType
- the type.public static IType<?> getTypeFromObject(Object pObject)
pObject
- the object.
public static IType<?> getTypeFromClass(Class<?> pClass)
pClass
- the class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |