public abstract class BaseValueObject extends Object implements ValueObject, Serializable, Comparable<BaseValueObject>
equals() and
hashCode() methods.| Modifier | Constructor and Description |
|---|---|
protected |
BaseValueObject() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BaseValueObject o) |
boolean |
equals(Object other)
Value objects compare by the values of their attributes, they don't have an identity.
|
int |
hashCode() |
String |
toString() |
public final int hashCode()
hashCode in interface ValueObjecthashCode in class Objectpublic final boolean equals(Object other)
ValueObjectequals in interface ValueObjectequals in class Objectother - other objectpublic String toString()
toString in interface ValueObjecttoString in class Objectpublic int compareTo(BaseValueObject o)
compareTo in interface Comparable<BaseValueObject>Copyright © 2013-2016–2016 SeedStack. All rights reserved.