public class StructuredEquals extends Object
Constructor and Description |
---|
StructuredEquals() |
Modifier and Type | Method and Description |
---|---|
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. |
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 objectdeepIterableHashCode(Object)
public int deepIterableHashCode(Object object)
Iterable
s and arrays.object
- the object to determine the hash code fromdeepIterableEquals(Object, Object)
public Collection<?> collectObjects(Object object)
Iterable
or array and in
their elements.object
- the object to collect objects onBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a