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()
ModelObjectComplete
ModelObjectComplete.hashCode()
contract.hashCode
in interface ModelObjectComplete
hashCode
in class Object
protected 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)
ModelObjectComplete
ModelObjectComplete.equals(Object)
contract.equals
in interface ModelObjectComplete
equals
in class Object
obj
- to object to compare for equalitypublic String toString()
ModelObjectBasic
toString
in interface ModelObjectBasic
toString
in class Object
protected void beforeUnmarshal(Unmarshaller u, Object parent) throws Exception
Exception
protected void afterUnmarshal(Unmarshaller u, Object parent) throws Exception
Exception
protected static final Collection<String> getDefaultHashCodeEqualsExcludeFields()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.