|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.smartics.properties.api.core.domain.PropertyType
public final class PropertyType
Provides information about the type of a property.
Constructor Summary | |
---|---|
PropertyType(Class<?> type) Convenience constructor for non-collection types. |
|
PropertyType(Class<?> type, Class<?> elementType) Default constructor. |
Method Summary | |
---|---|
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
Class<?> |
getElementType() Returns the Java type of the elements of the property if the type is a collection type. |
Class<?> |
getType() Returns the Java type of the property. |
int |
hashCode() Returns the hash code of the object. |
String |
toSimpleString() Returns the simple (no package part) name of the type. |
String |
toString() Returns the name of the type. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyType(Class<?> type) throws de.smartics.util.lang.NullArgumentException
type
- the Java type of the property.
de.smartics.util.lang.NullArgumentException
- if
type
is
null
.
public PropertyType(Class<?> type, Class<?> elementType) throws de.smartics.util.lang.NullArgumentException
type
- the Java type of the property.
elementType
- the Java type of the elements of the property if the
type
is a collection type.
de.smartics.util.lang.NullArgumentException
- if
type
is
null
.
Method Detail |
---|
public Class<?> getType()
public Class<?> getElementType()
type
is a collection type. The value is derived from the value specified as
PropertyElementType
.
type
is a collection type.
public int hashCode()
hashCode
in class
Object
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public String toSimpleString()
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |