|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.beancmpr.comparers.IterableComparer<T>
public class IterableComparer<T>
Compares to Iterable
s.
Constructor Summary | |
---|---|
IterableComparer()
|
Method Summary | |
---|---|
IterableComparison<T> |
compare(Iterable<? extends T> x,
Iterable<? extends T> y)
Compare two things. |
Class<?> |
getType()
The type of the things. |
void |
injectComparers(ComparersByType comparers)
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 IterableComparer()
Method Detail |
---|
public void setComparersByType(ComparersByType comparersByType)
public void injectComparers(ComparersByType comparers)
HierarchicalComparer
HierarchicalComparer
s.
injectComparers
in interface HierarchicalComparer
comparers
- The master comparers.public IterableComparison<T> compare(Iterable<? extends T> x, Iterable<? extends T> y)
Comparer
compare
in interface Comparer<Iterable<? extends T>>
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<Iterable<? extends T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |