public abstract class AbstractDataTransferObject extends Object implements ModelObjectComplete
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDataTransferObject.Constants
Defines some internal constants used on this class.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataTransferObject() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterUnmarshal(Unmarshaller u,
Object parent) |
protected void |
beforeUnmarshal(Unmarshaller u,
Object parent) |
boolean |
equals(Object obj)
All "Complete" model object's should adhere to the
ModelObjectComplete.equals(Object) contract. |
protected boolean |
equalsExcludeFields(Object obj,
Collection<String> excludedFields)
Indicates whether the obj parameter is equal to this object.
|
protected static Collection<String> |
getDefaultHashCodeEqualsExcludeFields() |
int |
hashCode()
All "Complete" model object's should adhere to the
ModelObjectComplete.hashCode() contract. |
protected int |
hashCodeExcludeFields(Collection<String> excludedFields)
compute or return the memoized hashcode for this immutable class, excluding the named fields.
|
String |
toString()
This will return a proper string representation of the Model Object.
|
protected AbstractDataTransferObject()
protected final int hashCodeExcludeFields(Collection<String> excludedFields)
excludedFields - the names of fields to exclude when computing the hashcode.equalsExcludeFields(Object, java.util.Collection),
getDefaultHashCodeEqualsExcludeFields()public int hashCode()
ModelObjectCompleteModelObjectComplete.hashCode() contract.hashCode in interface ModelObjectCompletehashCode in class Objectprotected final boolean equalsExcludeFields(Object obj, Collection<String> excludedFields)
EqualsBuilder.reflectionEquals(Object, Object, java.util.Collection)
and takes the names of fields to exclude from comparison.obj - the other object to compare toexcludedFields - the names of fields to exclude when computing the hashcode.hashCodeExcludeFields(java.util.Collection),
getDefaultHashCodeEqualsExcludeFields()public boolean equals(Object obj)
ModelObjectCompleteModelObjectComplete.equals(Object) contract.equals in interface ModelObjectCompleteequals in class Objectobj - to object to compare for equalitypublic String toString()
ModelObjectBasictoString in interface ModelObjectBasictoString in class Objectprotected void beforeUnmarshal(Unmarshaller u, Object parent) throws Exception
Exceptionprotected void afterUnmarshal(Unmarshaller u, Object parent) throws Exception
Exceptionprotected static final Collection<String> getDefaultHashCodeEqualsExcludeFields()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.