|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pojomatic.internal.ClassProperties
public class ClassProperties
The properties of a class used for PojomatorImpl.doHashCode(Object)
,
PojomatorImpl.doEquals(Object, Object)
, and PojomatorImpl.doToString(Object)
.
Method Summary | |
---|---|
static ClassProperties |
forClass(java.lang.Class<?> pojoClass)
Get an instance for the given pojoClass . |
java.util.Collection<PropertyElement> |
getEqualsProperties()
Gets the properties to use for PojomatorImpl.doEquals(Object, Object) . |
java.util.Collection<PropertyElement> |
getHashCodeProperties()
Gets the properties to use for PojomatorImpl.doHashCode(Object) . |
java.util.Collection<PropertyElement> |
getToStringProperties()
Gets the properties to use for PojomatorImpl.doToString(Object) . |
boolean |
isCompatibleForEquals(java.lang.Class<?> otherClass)
Whether instances of otherClass are candidates for being equal to instances of
the class this ClassProperties instance was created for. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ClassProperties forClass(java.lang.Class<?> pojoClass) throws NoPojomaticPropertiesException
pojoClass
. Instances are cached, so calling this method
repeatedly is not inefficient.
pojoClass
- the class to inspect for properties
ClassProperties
for pojoClass
.
NoPojomaticPropertiesException
- if pojoClass
has no properties annotated for use
with Pojomatic.public java.util.Collection<PropertyElement> getEqualsProperties()
PojomatorImpl.doEquals(Object, Object)
.
PojomatorImpl.doEquals(Object, Object)
.public java.util.Collection<PropertyElement> getHashCodeProperties()
PojomatorImpl.doHashCode(Object)
.
PojomatorImpl.doHashCode(Object)
.public java.util.Collection<PropertyElement> getToStringProperties()
PojomatorImpl.doToString(Object)
.
PojomatorImpl.doToString(Object)
.public boolean isCompatibleForEquals(java.lang.Class<?> otherClass)
otherClass
are candidates for being equal to instances of
the class this ClassProperties
instance was created for.
otherClass
- the class to check for compatibility for equals with.
true
if instances of otherClass
are candidates for being equal to
instances of the class this ClassProperties
instance was created for, or false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |