com.g2forge.alexandria.collection.ICollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ax-collection Show documentation
Show all versions of ax-collection Show documentation
Extended collection API, which will evolve to encompass all ADTs.
package com.g2forge.alexandria.collection;
import java.util.Collection;
import java.util.stream.Stream;
/**
* Simple interface for a collection of elements which can be examined. This interface may need to be renamed later given the number of things called
* "collections".
*
* @param The type of the elements in this collection.
*
* @see DIteratorCollection
* @see DCollectionCollection
* @see DStreamCollection
*/
public interface ICollection extends Iterable {
public Stream stream();
public Collection toCollection();
}