Class CollatingUniqueAmetysObjectIterable<A extends AmetysObject>

java.lang.Object
org.ametys.plugins.repository.CollatingUniqueAmetysObjectIterable<A>
Type Parameters:
A - the actual type of AmetysObjects.
All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<A>, AmetysObjectIterable<A>

public class CollatingUniqueAmetysObjectIterable<A extends AmetysObject> extends Object implements AmetysObjectIterable<A>
Implementation of a AmetysObjectIterable based on a list of others AmetysObjectIterable, which returns the objects in a given order, removing duplicates. Each iterable must be sorted. The "collating" part is copied and adapted from Apache Commons Lang's CollatingIterator class.