@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) |
boolean |
anySatisfy(ShortPredicate predicate) |
boolean |
containsAll(short... source) |
boolean |
containsAll(ShortIterable source) |
int |
count(ShortPredicate predicate) |
void |
each(ShortProcedure procedure) |
void |
forEach(ShortProcedure procedure) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
boolean |
noneSatisfy(ShortPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
ShortIterator |
shortIterator() |
int |
size()
Returns the number of items in this iterable.
|
short[] |
toArray() |
MutableShortBag |
toBag() |
MutableShortList |
toList() |
MutableShortSet |
toSet() |
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, toString
public CollectShortIterable(LazyIterable<T> adapted, ShortFunction<? super T> function)
public ShortIterator shortIterator()
public void forEach(ShortProcedure procedure)
forEach
in interface ShortIterable
forEach
in class AbstractLazyShortIterable
public void each(ShortProcedure procedure)
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)
count
in interface ShortIterable
count
in class AbstractLazyShortIterable
public boolean anySatisfy(ShortPredicate predicate)
anySatisfy
in interface ShortIterable
anySatisfy
in class AbstractLazyShortIterable
public boolean allSatisfy(ShortPredicate predicate)
allSatisfy
in interface ShortIterable
allSatisfy
in class AbstractLazyShortIterable
public boolean noneSatisfy(ShortPredicate predicate)
noneSatisfy
in interface ShortIterable
noneSatisfy
in class AbstractLazyShortIterable
public short[] toArray()
toArray
in interface ShortIterable
toArray
in class AbstractLazyShortIterable
public short[] toSortedArray()
toSortedArray
in interface ShortIterable
toSortedArray
in class AbstractLazyShortIterable
public MutableShortList toList()
toList
in interface ShortIterable
toList
in class AbstractLazyShortIterable
public MutableShortSet toSet()
toSet
in interface ShortIterable
toSet
in class AbstractLazyShortIterable
public MutableShortBag toBag()
toBag
in interface ShortIterable
toBag
in class AbstractLazyShortIterable
public boolean containsAll(short... source)
containsAll
in interface ShortIterable
containsAll
in class AbstractLazyShortIterable
public boolean containsAll(ShortIterable source)
containsAll
in interface ShortIterable
containsAll
in class AbstractLazyShortIterable
Copyright © 2004–2016. All rights reserved.