org.oddjob.beancmpr.matchables
Class SortedBeanMatchables<T>
java.lang.Object
org.oddjob.beancmpr.matchables.SortedBeanMatchables<T>
- All Implemented Interfaces:
- Iterable<MatchableGroup>
public class SortedBeanMatchables<T>
- extends Object
- implements Iterable<MatchableGroup>
An adapter that converts an Iterable
of bean to
an Iterable
of MatchableGroup
s suitable for use by
an OrderedMatchablesComparer
.
The beans must be in order as given by their key property
values.
- Author:
- rob
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedBeanMatchables
public SortedBeanMatchables(Iterable<? extends T> iterable,
MatchableFactory<T> factory)
iterator
public Iterator<MatchableGroup> iterator()
- Specified by:
iterator
in interface Iterable<MatchableGroup>
Copyright © 2013. All Rights Reserved.