|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.beancmpr.comparers.ArrayComparer
public class ArrayComparer
Compares to Arrays of Objects.
Constructor Summary | |
---|---|
ArrayComparer()
|
Method Summary | |
---|---|
Comparison<Object[]> |
compare(Object[] x,
Object[] y)
Compare two things. |
Class<?> |
getType()
The type of the things. |
void |
injectComparers(ComparersByType comparersByType)
Used by owner of comparers to inject the master comparer into HierarchicalComparer s. |
void |
setComparersByType(ComparersByType comparersByType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayComparer()
Method Detail |
---|
public void setComparersByType(ComparersByType comparersByType)
public void injectComparers(ComparersByType comparersByType)
HierarchicalComparer
HierarchicalComparer
s.
injectComparers
in interface HierarchicalComparer
comparersByType
- The master comparers.public Comparison<Object[]> compare(Object[] x, Object[] y)
Comparer
compare
in interface Comparer<Object[]>
x
- One thing.y
- The other thing.
public Class<?> getType()
Comparer
Note that we would have liked the return type
to be Class<T>
but we could not then have had a
Comparer<Iterable<MatchableGroup>>
because it's not possible to
return a type of Class<Iterable<MatchableGroup>>
in Java.
If there is a solution to this then please let us know.
getType
in interface Comparer<Object[]>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |