ReverseIterable
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Access | Constructor and Description |
|---|---|
| public |
| adapted | back to summary |
|---|---|
| private final IntList adapted | |
| ReverseIntIterable | back to summary |
|---|---|
| public ReverseIntIterable(IntList newAdapted) | |
| adapt | back to summary |
|---|---|
| public static ReverseIntIterable adapt(IntList intList) | |
| asLazy | back to summary |
|---|---|
| public LazyIntIterable asLazy() Overrides org. Implements org. Doc from org. Returns a LazyIntIterable adapter wrapping the source IntIterable.
| |
| average | back to summary |
|---|---|
| public double average() Overrides org. Implements org.
| |
| contains | back to summary |
|---|---|
| public boolean contains(int value) Overrides org. Implements org. Doc from org. Returns true if the value is contained in the IntIterable, and false if it is not.
| |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(int... source) Overrides org. Overrides default org. Doc from org. Returns true if all of the values specified in the source array are contained in the IntIterable, and false if they are not.
| |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(IntIterable source) Overrides org. Overrides default org. Doc from org. Returns true if all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.
| |
| each | back to summary |
|---|---|
| public void each(IntProcedure procedure) Implements org. Doc from org. A synonym for forEach.
| |
| intIterator | back to summary |
|---|---|
| public IntIterator intIterator() Implements org. Doc from org. Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides org. Overrides default org. Doc from org. Returns true if this iterable has zero items.
| |
| max | back to summary |
|---|---|
| public int max() Overrides org. Implements org.
| |
| maxIfEmpty | back to summary |
|---|---|
| public int maxIfEmpty(int defaultValue) Overrides org. Implements org.
| |
| median | back to summary |
|---|---|
| public double median() Overrides org. Implements org.
| |
| min | back to summary |
|---|---|
| public int min() Overrides org. Implements org.
| |
| minIfEmpty | back to summary |
|---|---|
| public int minIfEmpty(int defaultValue) Overrides org. Implements org.
| |
| notEmpty | back to summary |
|---|---|
| public boolean notEmpty() Overrides org. Overrides default org. Doc from org. The English equivalent of !this.isEmpty()
| |
| size | back to summary |
|---|---|
| public int size() Overrides org. Implements org. Doc from org. Returns the number of items in this iterable.
| |
| sum | back to summary |
|---|---|
| public long sum() Overrides org. Implements org.
| |
| toArray | back to summary |
|---|---|
| public int[] toArray() Overrides org. Implements org. Doc from org. Converts the IntIterable to a primitive int array.
| |
| toBag | back to summary |
|---|---|
| public MutableIntBag toBag() Overrides org. Implements org. Doc from org. Converts the IntIterable to a new MutableIntBag.
| |
| toList | back to summary |
|---|---|
| public MutableIntList toList() Overrides org. Implements org. Doc from org. Converts the IntIterable to a new MutableIntList.
| |
| toSet | back to summary |
|---|---|
| public MutableIntSet toSet() Overrides org. Implements org. Doc from org. Converts the IntIterable to a new MutableIntSet.
| |
| toSortedArray | back to summary |
|---|---|
| public int[] toSortedArray() Overrides org. Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | currentIndex
Index of element to be returned by subsequent call to next. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public int |
| currentIndex | back to summary |
|---|---|
| private int currentIndex Index of element to be returned by subsequent call to next. | |
| ReverseIntIterator | back to summary |
|---|---|
| private ReverseIntIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements org.
| |
| next | back to summary |
|---|---|
| public int next() Implements org.
| |