Class UnmodifiableLongStack
java.lang.Object
org.eclipse.collections.impl.stack.mutable.primitive.UnmodifiableLongStack
- All Implemented Interfaces:
Serializable,LongIterable,OrderedLongIterable,PrimitiveIterable,LongStack,MutableLongStack
This file was automatically generated from template file unmodifiablePrimitiveStack.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(LongPredicate predicate) booleananySatisfy(LongPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableStack<V>collect(LongToObjectFunction<? extends V> function) <V> MutableStack<V>collectWithIndex(LongIntToObjectFunction<? extends V> function) Returns a new MutableStack using results obtained by applying the specified function to each element and its corresponding index.<V,R extends Collection<V>>
RcollectWithIndex(LongIntToObjectFunction<? extends V> function, R target) Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.booleancontains(long value) booleancontainsAll(long... source) booleancontainsAll(LongIterable source) intcount(LongPredicate predicate) longdetectIfNone(LongPredicate predicate, long ifNone) voideach(LongProcedure procedure) booleanvoidforEachWithIndex(LongIntProcedure procedure) longgetFirst()inthashCode()intindexOf(long value) <T> TinjectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) <T> TinjectIntoWithIndex(T injectedValue, ObjectLongIntToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) longmax()longmaxIfEmpty(long defaultValue) doublemedian()longmin()longminIfEmpty(long defaultValue) newEmpty()booleannoneSatisfy(LongPredicate predicate) booleannotEmpty()longpeek()peek(int count) longpeekAt(int index) longpop()pop(int count) voidpush(long item) reject(LongPredicate predicate) select(LongPredicate predicate) intsize()longsum()long[]toArray()long[]toArray(long[] target) toBag()toList()toSet()long[]toStack()toString()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, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.stack.primitive.MutableLongStack
rejectWithIndex, selectWithIndex, tapMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterable
rejectWithIndex, selectWithIndex
-
Constructor Details
-
UnmodifiableLongStack
-
-
Method Details
-
push
public void push(long item) - Specified by:
pushin interfaceMutableLongStack
-
pop
public long pop()- Specified by:
popin interfaceMutableLongStack
-
pop
- Specified by:
popin interfaceMutableLongStack
-
peek
public long peek() -
peek
-
peekAt
public long peekAt(int index) -
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableLongStack
-
contains
public boolean contains(long value) - Specified by:
containsin interfaceLongIterable
-
containsAll
public boolean containsAll(long... source) - Specified by:
containsAllin interfaceLongIterable
-
containsAll
- Specified by:
containsAllin interfaceLongIterable
-
longIterator
- Specified by:
longIteratorin interfaceLongIterable
-
each
- Specified by:
eachin interfaceLongIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceLongIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceLongIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceLongIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceLongIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceLongIterable
-
select
- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongStack- Specified by:
selectin interfaceMutableLongStack- Specified by:
selectin interfaceOrderedLongIterable
-
reject
- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongStack- Specified by:
rejectin interfaceMutableLongStack- Specified by:
rejectin interfaceOrderedLongIterable
-
collect
- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongStack- Specified by:
collectin interfaceMutableLongStack- Specified by:
collectin interfaceOrderedLongIterable
-
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
-
toSortedList
- Specified by:
toSortedListin interfaceLongIterable
-
toSortedArray
public long[] toSortedArray()- Specified by:
toSortedArrayin interfaceLongIterable
-
toArray
public long[] toArray()- Specified by:
toArrayin interfaceLongIterable
-
toArray
public long[] toArray(long[] target) - Specified by:
toArrayin interfaceLongIterable
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
- Specified by:
toListin interfaceLongIterable
-
toSet
- Specified by:
toSetin interfaceLongIterable
-
toBag
- Specified by:
toBagin interfaceLongIterable
-
equals
-
hashCode
public int hashCode() -
asLazy
- Specified by:
asLazyin interfaceLongIterable
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableLongStack
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableLongStack
-
toImmutable
- Specified by:
toImmutablein interfaceLongStack
-
newEmpty
- Specified by:
newEmptyin interfaceMutableLongStack- Since:
- 9.2.
-
injectInto
public <T> T injectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceLongIterable
-
chunk
- Specified by:
chunkin interfaceLongIterable
-
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
- Specified by:
forEachWithIndexin interfaceOrderedLongIterable
-
collectWithIndex
Returns a new MutableStack using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceLongStack- Specified by:
collectWithIndexin interfaceMutableLongStack- Specified by:
collectWithIndexin interfaceOrderedLongIterable- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R collectWithIndex(LongIntToObjectFunction<? extends V> function, R target) Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceOrderedLongIterable- Since:
- 9.1.
-
toStack
- Specified by:
toStackin interfaceOrderedLongIterable
-