LazyShortIterable
, PrimitiveIterable
, ShortIterable
public class CollectShortIterable<T> extends AbstractLazyShortIterable
Constructor | Description |
---|---|
CollectShortIterable(LazyIterable<T> adapted,
ShortFunction<? super T> function) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allSatisfy(ShortPredicate predicate) |
Returns true if all of the elements in the ShortIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(ShortPredicate predicate) |
Returns true if any of the elements in the ShortIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
containsAll(short... source) |
Returns true if the all of the values specified in the source array are contained
in the ShortIterable, and false if they are not.
|
boolean |
containsAll(ShortIterable source) |
Returns true if the all of the values specified in the source ShortIterable are contained
in the ShortIterable, and false if they are not.
|
int |
count(ShortPredicate predicate) |
Returns a count of the number of elements in the ShortIterable that return true for the
specified predicate.
|
void |
each(ShortProcedure procedure) |
A synonym for forEach.
|
void |
forEach(ShortProcedure procedure) |
Applies the ShortProcedure to each element in the ShortIterable.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
boolean |
noneSatisfy(ShortPredicate predicate) |
Returns true if none of the elements in the ShortIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
ShortIterator |
shortIterator() |
Returns a primitive iterator that can be used to iterate over the ShortIterable in an
imperative style.
|
int |
size() |
Returns the number of items in this iterable.
|
short[] |
toArray() |
Converts the ShortIterable to a primitive short array.
|
MutableShortBag |
toBag() |
Converts the ShortIterable to a new MutableShortBag.
|
MutableShortList |
toList() |
Converts the ShortIterable to a new MutableShortList.
|
MutableShortSet |
toSet() |
Converts the ShortIterable to a new MutableShortSet.
|
short[] |
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public CollectShortIterable(LazyIterable<T> adapted, ShortFunction<? super T> function)
public ShortIterator shortIterator()
ShortIterable
public void forEach(ShortProcedure procedure)
ShortIterable
forEach
in interface ShortIterable
forEach
in class AbstractLazyShortIterable
public void each(ShortProcedure procedure)
ShortIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyShortIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyShortIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyShortIterable
public int count(ShortPredicate predicate)
ShortIterable
count
in interface ShortIterable
count
in class AbstractLazyShortIterable
public boolean anySatisfy(ShortPredicate predicate)
ShortIterable
anySatisfy
in interface ShortIterable
anySatisfy
in class AbstractLazyShortIterable
public boolean allSatisfy(ShortPredicate predicate)
ShortIterable
allSatisfy
in interface ShortIterable
allSatisfy
in class AbstractLazyShortIterable
public boolean noneSatisfy(ShortPredicate predicate)
ShortIterable
noneSatisfy
in interface ShortIterable
noneSatisfy
in class AbstractLazyShortIterable
public short[] toArray()
ShortIterable
toArray
in interface ShortIterable
toArray
in class AbstractLazyShortIterable
public short[] toSortedArray()
toSortedArray
in interface ShortIterable
toSortedArray
in class AbstractLazyShortIterable
public MutableShortList toList()
ShortIterable
toList
in interface ShortIterable
toList
in class AbstractLazyShortIterable
public MutableShortSet toSet()
ShortIterable
toSet
in interface ShortIterable
toSet
in class AbstractLazyShortIterable
public MutableShortBag toBag()
ShortIterable
toBag
in interface ShortIterable
toBag
in class AbstractLazyShortIterable
public boolean containsAll(short... source)
ShortIterable
containsAll
in interface ShortIterable
containsAll
in class AbstractLazyShortIterable
public boolean containsAll(ShortIterable source)
ShortIterable
containsAll
in interface ShortIterable
containsAll
in class AbstractLazyShortIterable
Copyright © 2004–2019. All rights reserved.