|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.util.StructuredEquals
public class StructuredEquals
StructuredEquals provides methods for equals and hashCode implementations for complex structures.
Constructor Summary | |
---|---|
StructuredEquals()
|
Method Summary | |
---|---|
protected Iterable<?> |
asIterable(Object object)
Returns an iterable for the given objects contents, or null if it does not contain anything that needs to be compared. |
Collection<?> |
collectObjects(Object object)
Collect all objects contained in an Iterable or array and in
their elements. |
boolean |
deepIterableEquals(Object o1,
Object o2)
Determines if the given objects are equal, in turn descending into Iterable s and arrays and checking if the elements are equal (in
order). |
int |
deepIterableHashCode(Object object)
Get the hash code for all contained objects, descending into Iterable s and arrays. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StructuredEquals()
Method Detail |
---|
public boolean deepIterableEquals(Object o1, Object o2)
Iterable
s and arrays and checking if the elements are equal (in
order).
o1
- the first objecto2
- the second object
deepIterableHashCode(Object)
public int deepIterableHashCode(Object object)
Iterable
s and arrays.
object
- the object to determine the hash code from
deepIterableEquals(Object, Object)
public Collection<?> collectObjects(Object object)
Iterable
or array and in
their elements.
object
- the object to collect objects on
protected Iterable<?> asIterable(Object object)
object
- the object in question
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |