Class CollectShortIterable<T>
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable
-
- org.eclipse.collections.impl.lazy.primitive.CollectShortIterable<T>
-
- All Implemented Interfaces:
LazyShortIterable,PrimitiveIterable,ShortIterable
public class CollectShortIterable<T> extends AbstractLazyShortIterable
This file was automatically generated from template file collectPrimitiveIterable.stg.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCollectShortIterable.ShortFunctionToProcedure<T>
-
Field Summary
Fields Modifier and Type Field Description private ShortFunction<? super T>functionprivate LazyIterable<T>iterableprivate CollectShortIterable.ShortFunctionToProcedure<T>shortFunctionToProcedure
-
Constructor Summary
Constructors Constructor Description CollectShortIterable(LazyIterable<T> adapted, ShortFunction<? super T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(ShortPredicate predicate)Returns true if all of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(ShortPredicate predicate)Returns true if any of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.booleancontainsAll(short... source)Returns true if all of the values specified in the source array are contained in the ShortIterable, and false if they are not.booleancontainsAll(ShortIterable source)Returns true if all of the values specified in the source ShortIterable are contained in the ShortIterable, and false if they are not.intcount(ShortPredicate predicate)Returns a count of the number of elements in the ShortIterable that return true for the specified predicate.voideach(ShortProcedure procedure)A synonym for forEach.booleanisEmpty()Returns true if this iterable has zero items.booleannotEmpty()The English equivalent of !this.isEmpty()ShortIteratorshortIterator()Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.intsize()Returns the number of items in this iterable.short[]toArray()Converts the ShortIterable to a primitive short array.MutableShortBagtoBag()Converts the ShortIterable to a new MutableShortBag.MutableShortListtoList()Converts the ShortIterable to a new MutableShortList.MutableShortSettoSet()Converts the ShortIterable to a new MutableShortSet.short[]toSortedArray()-
Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable
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, noneSatisfy, reject, select, sum, tap, toSortedList, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.ShortIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray, toSortedList, toSortedListBy, toSortedListBy
-
-
-
-
Field Detail
-
iterable
private final LazyIterable<T> iterable
-
function
private final ShortFunction<? super T> function
-
shortFunctionToProcedure
private final CollectShortIterable.ShortFunctionToProcedure<T> shortFunctionToProcedure
-
-
Constructor Detail
-
CollectShortIterable
public CollectShortIterable(LazyIterable<T> adapted, ShortFunction<? super T> function)
-
-
Method Detail
-
shortIterator
public ShortIterator shortIterator()
Description copied from interface:ShortIterableReturns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.
-
each
public void each(ShortProcedure procedure)
Description copied from interface:ShortIterableA synonym for forEach.- Since:
- 7.0.
-
size
public int size()
Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyShortIterable
-
isEmpty
public boolean isEmpty()
Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable- Overrides:
isEmptyin classAbstractLazyShortIterable
-
notEmpty
public boolean notEmpty()
Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyShortIterable
-
count
public int count(ShortPredicate predicate)
Description copied from interface:ShortIterableReturns a count of the number of elements in the ShortIterable that return true for the specified predicate.- Specified by:
countin interfaceShortIterable- Overrides:
countin classAbstractLazyShortIterable
-
anySatisfy
public boolean anySatisfy(ShortPredicate predicate)
Description copied from interface:ShortIterableReturns true if any of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfyin interfaceShortIterable- Overrides:
anySatisfyin classAbstractLazyShortIterable
-
allSatisfy
public boolean allSatisfy(ShortPredicate predicate)
Description copied from interface:ShortIterableReturns true if all of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfyin interfaceShortIterable- Overrides:
allSatisfyin classAbstractLazyShortIterable
-
toArray
public short[] toArray()
Description copied from interface:ShortIterableConverts the ShortIterable to a primitive short array.- Specified by:
toArrayin interfaceShortIterable- Overrides:
toArrayin classAbstractLazyShortIterable
-
toSortedArray
public short[] toSortedArray()
- Specified by:
toSortedArrayin interfaceShortIterable- Overrides:
toSortedArrayin classAbstractLazyShortIterable
-
toList
public MutableShortList toList()
Description copied from interface:ShortIterableConverts the ShortIterable to a new MutableShortList.- Specified by:
toListin interfaceShortIterable- Overrides:
toListin classAbstractLazyShortIterable
-
toSet
public MutableShortSet toSet()
Description copied from interface:ShortIterableConverts the ShortIterable to a new MutableShortSet.- Specified by:
toSetin interfaceShortIterable- Overrides:
toSetin classAbstractLazyShortIterable
-
toBag
public MutableShortBag toBag()
Description copied from interface:ShortIterableConverts the ShortIterable to a new MutableShortBag.- Specified by:
toBagin interfaceShortIterable- Overrides:
toBagin classAbstractLazyShortIterable
-
containsAll
public boolean containsAll(short... source)
Description copied from interface:ShortIterableReturns true if all of the values specified in the source array are contained in the ShortIterable, and false if they are not.- Specified by:
containsAllin interfaceShortIterable- Overrides:
containsAllin classAbstractLazyShortIterable
-
containsAll
public boolean containsAll(ShortIterable source)
Description copied from interface:ShortIterableReturns true if all of the values specified in the source ShortIterable are contained in the ShortIterable, and false if they are not.- Specified by:
containsAllin interfaceShortIterable- Overrides:
containsAllin classAbstractLazyShortIterable
-
-