public abstract class BaseValueObject extends Object implements ValueObject, Serializable
equals() and
hashCode() methods which are computed by reflection on all non-transient field values. If performance is critical,
consider overriding those methods with optimized versions. Be sure to respect the equality semantics for value objects
when doing so.| Constructor and Description |
|---|
BaseValueObject() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Computes the equality by reflection on all non-transient fields.
|
int |
hashCode()
Computes the hash code by reflection on all non-transient fields.
|
String |
toString() |
public int hashCode()
hashCode in interface ValueObjecthashCode in class Objectpublic boolean equals(Object other)
equals in interface ValueObjectequals in class Objectother - other objectValueObject and has the same value as this value object, false otherwise.public String toString()
toString in interface ValueObjecttoString in class ObjectCopyright © 2013-2016–2016 SeedStack. All rights reserved.