public abstract class GroupingIterable<TSource,TGroup> extends Object implements CloseableIterable<TGroup>
| Constructor and Description |
|---|
GroupingIterable(Iterable<TSource> source) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addToGroup(TGroup group,
TSource item) |
void |
close() |
protected abstract TGroup |
createGroup(TSource item) |
protected boolean |
isIncluded(TSource item) |
protected abstract boolean |
isPartOfGroup(TGroup group,
TSource item) |
Iterator<TGroup> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected boolean isIncluded(TSource item)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.