IntIterable
, LazyIntIterable
, PrimitiveIterable
public class CollectIntIterable<T> extends AbstractLazyIntIterable
Constructor | Description |
---|---|
CollectIntIterable(LazyIterable<T> adapted,
IntFunction<? super T> function) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allSatisfy(IntPredicate predicate) |
Returns true if all of the elements in the IntIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(IntPredicate predicate) |
Returns true if any of the elements in the IntIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
containsAll(int... source) |
Returns true if the all of the values specified in the source array are contained
in the IntIterable, and false if they are not.
|
boolean |
containsAll(IntIterable source) |
Returns true if the all of the values specified in the source IntIterable are contained
in the IntIterable, and false if they are not.
|
int |
count(IntPredicate predicate) |
Returns a count of the number of elements in the IntIterable that return true for the
specified predicate.
|
void |
each(IntProcedure procedure) |
A synonym for forEach.
|
void |
forEach(IntProcedure procedure) |
Applies the IntProcedure to each element in the IntIterable.
|
IntIterator |
intIterator() |
Returns a primitive iterator that can be used to iterate over the IntIterable in an
imperative style.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
boolean |
noneSatisfy(IntPredicate predicate) |
Returns true if none of the elements in the IntIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
int[] |
toArray() |
Converts the IntIterable to a primitive int array.
|
MutableIntBag |
toBag() |
Converts the IntIterable to a new MutableIntBag.
|
MutableIntList |
toList() |
Converts the IntIterable to a new MutableIntList.
|
MutableIntSet |
toSet() |
Converts the IntIterable to a new MutableIntSet.
|
int[] |
toSortedArray() |
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedList, toString
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public CollectIntIterable(LazyIterable<T> adapted, IntFunction<? super T> function)
public IntIterator intIterator()
IntIterable
public void forEach(IntProcedure procedure)
IntIterable
forEach
in interface IntIterable
forEach
in class AbstractLazyIntIterable
public void each(IntProcedure procedure)
IntIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyIntIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyIntIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyIntIterable
public int count(IntPredicate predicate)
IntIterable
count
in interface IntIterable
count
in class AbstractLazyIntIterable
public boolean anySatisfy(IntPredicate predicate)
IntIterable
anySatisfy
in interface IntIterable
anySatisfy
in class AbstractLazyIntIterable
public boolean allSatisfy(IntPredicate predicate)
IntIterable
allSatisfy
in interface IntIterable
allSatisfy
in class AbstractLazyIntIterable
public boolean noneSatisfy(IntPredicate predicate)
IntIterable
noneSatisfy
in interface IntIterable
noneSatisfy
in class AbstractLazyIntIterable
public int[] toArray()
IntIterable
toArray
in interface IntIterable
toArray
in class AbstractLazyIntIterable
public int[] toSortedArray()
toSortedArray
in interface IntIterable
toSortedArray
in class AbstractLazyIntIterable
public MutableIntList toList()
IntIterable
toList
in interface IntIterable
toList
in class AbstractLazyIntIterable
public MutableIntSet toSet()
IntIterable
toSet
in interface IntIterable
toSet
in class AbstractLazyIntIterable
public MutableIntBag toBag()
IntIterable
toBag
in interface IntIterable
toBag
in class AbstractLazyIntIterable
public boolean containsAll(int... source)
IntIterable
containsAll
in interface IntIterable
containsAll
in class AbstractLazyIntIterable
public boolean containsAll(IntIterable source)
IntIterable
containsAll
in interface IntIterable
containsAll
in class AbstractLazyIntIterable
Copyright © 2004–2019. All rights reserved.