@Immutable public class CollectShortIterable<T> extends AbstractLazyShortIterable
| Constructor and Description |
|---|
CollectShortIterable(LazyIterable<T> adapted,
ShortFunction<? super T> function) |
| Modifier and Type | Method and 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, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, toSortedList, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reject, select, summaryStatisticspublic CollectShortIterable(LazyIterable<T> adapted, ShortFunction<? super T> function)
public ShortIterator shortIterator()
ShortIterablepublic void forEach(ShortProcedure procedure)
ShortIterableforEach in interface ShortIterableforEach in class AbstractLazyShortIterablepublic void each(ShortProcedure procedure)
ShortIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyShortIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyShortIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyShortIterablepublic int count(ShortPredicate predicate)
ShortIterablecount in interface ShortIterablecount in class AbstractLazyShortIterablepublic boolean anySatisfy(ShortPredicate predicate)
ShortIterableanySatisfy in interface ShortIterableanySatisfy in class AbstractLazyShortIterablepublic boolean allSatisfy(ShortPredicate predicate)
ShortIterableallSatisfy in interface ShortIterableallSatisfy in class AbstractLazyShortIterablepublic boolean noneSatisfy(ShortPredicate predicate)
ShortIterablenoneSatisfy in interface ShortIterablenoneSatisfy in class AbstractLazyShortIterablepublic short[] toArray()
ShortIterabletoArray in interface ShortIterabletoArray in class AbstractLazyShortIterablepublic short[] toSortedArray()
toSortedArray in interface ShortIterabletoSortedArray in class AbstractLazyShortIterablepublic MutableShortList toList()
ShortIterabletoList in interface ShortIterabletoList in class AbstractLazyShortIterablepublic MutableShortSet toSet()
ShortIterabletoSet in interface ShortIterabletoSet in class AbstractLazyShortIterablepublic MutableShortBag toBag()
ShortIterabletoBag in interface ShortIterabletoBag in class AbstractLazyShortIterablepublic boolean containsAll(short... source)
ShortIterablecontainsAll in interface ShortIterablecontainsAll in class AbstractLazyShortIterablepublic boolean containsAll(ShortIterable source)
ShortIterablecontainsAll in interface ShortIterablecontainsAll in class AbstractLazyShortIterableCopyright © 2004–2017. All rights reserved.