Class AbstractLongStack
- java.lang.Object
-
- org.eclipse.collections.impl.stack.primitive.AbstractLongStack
-
- All Implemented Interfaces:
LongIterable,OrderedLongIterable,PrimitiveIterable,LongStack
- Direct Known Subclasses:
LongArrayStack
public abstract class AbstractLongStack extends Object implements LongStack
This file was automatically generated from template file abstractPrimitiveStack.stg.
-
-
Constructor Summary
Constructors Constructor Description AbstractLongStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(LongPredicate predicate)booleananySatisfy(LongPredicate predicate)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyLongIterableasLazy()doubleaverage()RichIterable<LongIterable>chunk(int size)booleancontains(long value)booleancontainsAll(long... source)booleancontainsAll(LongIterable source)intcount(LongPredicate predicate)longdetectIfNone(LongPredicate predicate, long ifNone)voideach(LongProcedure procedure)booleanequals(Object otherStack)voidforEachWithIndex(LongIntProcedure procedure)longgetFirst()inthashCode()intindexOf(long value)<V> VinjectInto(V injectedValue, ObjectLongToObjectFunction<? super V,? extends V> function)<T> TinjectIntoWithIndex(T injectedValue, ObjectLongIntToObjectFunction<? super T,? extends T> function)LongIteratorlongIterator()StringmakeString()StringmakeString(String separator)StringmakeString(String start, String separator, String end)longmax()longmaxIfEmpty(long defaultValue)doublemedian()longmin()longminIfEmpty(long defaultValue)booleannoneSatisfy(LongPredicate predicate)longpeek()LongListpeek(int count)longpeekAt(int index)intsize()longsum()long[]toArray()long[]toArray(long[] target)MutableLongBagtoBag()MutableLongListtoList()MutableLongSettoSet()long[]toSortedArray()StringtoString()-
Methods inherited from interface org.eclipse.collections.api.LongIterable
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, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.stack.primitive.LongStack
collect, collectWithIndex, reject, rejectWithIndex, select, selectWithIndex, tap, toImmutable
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterable
collectWithIndex, rejectWithIndex, selectWithIndex
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
isEmpty, notEmpty
-
-
-
-
Method Detail
-
longIterator
public LongIterator longIterator()
- Specified by:
longIteratorin interfaceLongIterable
-
each
public void each(LongProcedure procedure)
- Specified by:
eachin interfaceLongIterable- Since:
- 7.0.
-
count
public int count(LongPredicate predicate)
- Specified by:
countin interfaceLongIterable
-
anySatisfy
public boolean anySatisfy(LongPredicate predicate)
- Specified by:
anySatisfyin interfaceLongIterable
-
allSatisfy
public boolean allSatisfy(LongPredicate predicate)
- Specified by:
allSatisfyin interfaceLongIterable
-
noneSatisfy
public boolean noneSatisfy(LongPredicate predicate)
- Specified by:
noneSatisfyin interfaceLongIterable
-
detectIfNone
public long detectIfNone(LongPredicate predicate, long ifNone)
- Specified by:
detectIfNonein interfaceLongIterable
-
toArray
public long[] toArray()
- Specified by:
toArrayin interfaceLongIterable
-
toArray
public long[] toArray(long[] target)
- Specified by:
toArrayin interfaceLongIterable
-
contains
public boolean contains(long value)
- Specified by:
containsin interfaceLongIterable
-
containsAll
public boolean containsAll(long... source)
- Specified by:
containsAllin interfaceLongIterable
-
containsAll
public boolean containsAll(LongIterable source)
- Specified by:
containsAllin interfaceLongIterable
-
toList
public MutableLongList toList()
- Specified by:
toListin interfaceLongIterable
-
toSet
public MutableLongSet toSet()
- Specified by:
toSetin interfaceLongIterable
-
toBag
public MutableLongBag toBag()
- Specified by:
toBagin interfaceLongIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectLongToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceLongIterable
-
asLazy
public LazyLongIterable asLazy()
- Specified by:
asLazyin interfaceLongIterable
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
equals
public boolean equals(Object otherStack)
-
hashCode
public int hashCode()
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
getFirst
public long getFirst()
- Specified by:
getFirstin interfaceOrderedLongIterable
-
indexOf
public int indexOf(long value)
- Specified by:
indexOfin interfaceOrderedLongIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectLongIntToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoWithIndexin interfaceOrderedLongIterable
-
forEachWithIndex
public void forEachWithIndex(LongIntProcedure procedure)
- Specified by:
forEachWithIndexin interfaceOrderedLongIterable
-
chunk
public RichIterable<LongIterable> chunk(int size)
- Specified by:
chunkin interfaceLongIterable
-
sum
public long sum()
- Specified by:
sumin interfaceLongIterable
-
max
public long max()
- Specified by:
maxin interfaceLongIterable
-
min
public long min()
- Specified by:
minin interfaceLongIterable
-
minIfEmpty
public long minIfEmpty(long defaultValue)
- Specified by:
minIfEmptyin interfaceLongIterable
-
maxIfEmpty
public long maxIfEmpty(long defaultValue)
- Specified by:
maxIfEmptyin interfaceLongIterable
-
average
public double average()
- Specified by:
averagein interfaceLongIterable
-
median
public double median()
- Specified by:
medianin interfaceLongIterable
-
toSortedArray
public long[] toSortedArray()
- Specified by:
toSortedArrayin interfaceLongIterable
-
-