Package com.complexible.common.collect
Interface SkippingIterable<T>
-
- All Known Subinterfaces:
PartitionedSkippingIterable<T>
public interface SkippingIterable<T>
Interface for ordered data sources that returns a skipping iterator.- Since:
- 0.7
- Version:
- 0.7
- Author:
- Evren Sirin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Comparator<T>
comparator()
The comparator associated with this iterable that also determines the ordering of the elements in the iterator.SkippingIterator<T>
iterator()
Returns a skipping iterator over a set of elements of type T.default SkippingIterator<T>
iterator(CancelCheck check)
Returns a skipping iterator over a set of elements of type T.SkippingIterator<T>
iterator(T theBegin)
Iterate over the elements in thisSkippingIterable
, starting at the given elementdefault SkippingIterator<T>
iterator(T theBegin, CancelCheck check)
Iterate over the elements in thisSkippingIterable
, starting at the given elementSkippingIterator<T>
iterator(T theBegin, T theEnd)
Iterate over the elements in thisSkippingIterable
, starting and ending at the given elementsdefault SkippingIterator<T>
iterator(T theBegin, T theEnd, CancelCheck theCheck)
Iterate over the elements in thisSkippingIterable
, starting and ending at the given elements
-
-
-
Method Detail
-
comparator
java.util.Comparator<T> comparator()
The comparator associated with this iterable that also determines the ordering of the elements in the iterator.- Returns:
- the comparator
-
iterator
@MustBeClosed SkippingIterator<T> iterator()
Returns a skipping iterator over a set of elements of type T.
-
iterator
@MustBeClosed SkippingIterator<T> iterator(T theBegin, T theEnd)
Iterate over the elements in thisSkippingIterable
, starting and ending at the given elements- Parameters:
theBegin
- the element to begin iterating attheEnd
- the element to stop iterating at- Returns:
- the iterator
-
iterator
@MustBeClosed SkippingIterator<T> iterator(T theBegin)
Iterate over the elements in thisSkippingIterable
, starting at the given element- Parameters:
theBegin
- the element to begin iteration at- Returns:
- the iterator
-
iterator
@MustBeClosed default SkippingIterator<T> iterator(CancelCheck check)
Returns a skipping iterator over a set of elements of type T.
-
iterator
@MustBeClosed default SkippingIterator<T> iterator(T theBegin, T theEnd, CancelCheck theCheck)
Iterate over the elements in thisSkippingIterable
, starting and ending at the given elements- Parameters:
theBegin
- the element to begin iterating attheEnd
- the element to stop iterating at- Returns:
- the iterator
-
iterator
@MustBeClosed default SkippingIterator<T> iterator(T theBegin, CancelCheck check)
Iterate over the elements in thisSkippingIterable
, starting at the given element- Parameters:
theBegin
- the element to begin iteration at- Returns:
- the iterator
-
-