Class TapShortIterable
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable
-
- org.eclipse.collections.impl.lazy.primitive.TapShortIterable
-
- All Implemented Interfaces:
LazyShortIterable
,PrimitiveIterable
,ShortIterable
public class TapShortIterable extends AbstractLazyShortIterable
This file was automatically generated from template file tapPrimitiveIterable.stg.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TapShortIterable.TapShortIterator
-
Field Summary
Fields Modifier and Type Field Description private ShortIterable
adapted
private ShortProcedure
procedure
-
Constructor Summary
Constructors Constructor Description TapShortIterable(ShortIterable delegate, ShortProcedure procedure)
-
Method Summary
All Methods Instance Methods Concrete Methods 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.short
detectIfNone(ShortPredicate predicate, short ifNone)
void
each(ShortProcedure procedure)
A synonym for forEach.boolean
noneSatisfy(ShortPredicate predicate)
Returns true if none of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.ShortIterator
shortIterator()
Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.-
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, containsAll, containsAll, count, flatCollect, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, notEmpty, reject, select, size, sum, tap, toArray, toBag, toList, toSet, toSortedArray, 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
-
adapted
private final ShortIterable adapted
-
procedure
private final ShortProcedure procedure
-
-
Constructor Detail
-
TapShortIterable
public TapShortIterable(ShortIterable delegate, ShortProcedure procedure)
-
-
Method Detail
-
each
public void each(ShortProcedure procedure)
Description copied from interface:ShortIterable
A synonym for forEach.
-
anySatisfy
public boolean anySatisfy(ShortPredicate predicate)
Description copied from interface:ShortIterable
Returns true if any of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfy
in interfaceShortIterable
- Overrides:
anySatisfy
in classAbstractLazyShortIterable
-
allSatisfy
public boolean allSatisfy(ShortPredicate predicate)
Description copied from interface:ShortIterable
Returns true if all of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfy
in interfaceShortIterable
- Overrides:
allSatisfy
in classAbstractLazyShortIterable
-
noneSatisfy
public boolean noneSatisfy(ShortPredicate predicate)
Description copied from interface:ShortIterable
Returns true if none of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.- Specified by:
noneSatisfy
in interfaceShortIterable
- Overrides:
noneSatisfy
in classAbstractLazyShortIterable
-
detectIfNone
public short detectIfNone(ShortPredicate predicate, short ifNone)
- Specified by:
detectIfNone
in interfaceShortIterable
- Overrides:
detectIfNone
in classAbstractLazyShortIterable
-
shortIterator
public ShortIterator shortIterator()
Description copied from interface:ShortIterable
Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.
-
-