org.oddjob.beancmpr.matchables
Class SortedBeanMatchables<T>

java.lang.Object
  extended by 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 MatchableGroups suitable for use by an OrderedMatchablesComparer.

The beans must be in order as given by their key property values.

Author:
rob

Constructor Summary
SortedBeanMatchables(Iterable<? extends T> iterable, MatchableFactory<T> factory)
           
 
Method Summary
 Iterator<MatchableGroup> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedBeanMatchables

public SortedBeanMatchables(Iterable<? extends T> iterable,
                            MatchableFactory<T> factory)
Method Detail

iterator

public Iterator<MatchableGroup> iterator()
Specified by:
iterator in interface Iterable<MatchableGroup>


Copyright © 2013. All Rights Reserved.