Class UnmodifiableDoubleStack
- java.lang.Object
-
- org.eclipse.collections.impl.stack.mutable.primitive.UnmodifiableDoubleStack
-
- All Implemented Interfaces:
Serializable,DoubleIterable,OrderedDoubleIterable,PrimitiveIterable,DoubleStack,MutableDoubleStack
public class UnmodifiableDoubleStack extends Object implements MutableDoubleStack, Serializable
This file was automatically generated from template file unmodifiablePrimitiveStack.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableDoubleStack(MutableDoubleStack stack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(DoublePredicate predicate)booleananySatisfy(DoublePredicate predicate)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyDoubleIterableasLazy()MutableDoubleStackasSynchronized()MutableDoubleStackasUnmodifiable()doubleaverage()RichIterable<DoubleIterable>chunk(int size)voidclear()<V> MutableStack<V>collect(DoubleToObjectFunction<? extends V> function)<V> MutableStack<V>collectWithIndex(DoubleIntToObjectFunction<? 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(DoubleIntToObjectFunction<? 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(double value)booleancontainsAll(double... source)booleancontainsAll(DoubleIterable source)intcount(DoublePredicate predicate)doubledetectIfNone(DoublePredicate predicate, double ifNone)DoubleIteratordoubleIterator()voideach(DoubleProcedure procedure)booleanequals(Object otherStack)voidforEachWithIndex(DoubleIntProcedure procedure)doublegetFirst()inthashCode()intindexOf(double value)<T> TinjectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)<T> TinjectIntoWithIndex(T injectedValue, ObjectDoubleIntToObjectFunction<? super T,? extends T> function)booleanisEmpty()StringmakeString()StringmakeString(String separator)StringmakeString(String start, String separator, String end)doublemax()doublemaxIfEmpty(double defaultValue)doublemedian()doublemin()doubleminIfEmpty(double defaultValue)MutableDoubleStacknewEmpty()booleannoneSatisfy(DoublePredicate predicate)booleannotEmpty()doublepeek()DoubleListpeek(int count)doublepeekAt(int index)doublepop()DoubleListpop(int count)voidpush(double item)MutableDoubleStackreject(DoublePredicate predicate)MutableDoubleStackselect(DoublePredicate predicate)intsize()doublesum()double[]toArray()double[]toArray(double[] target)MutableDoubleBagtoBag()ImmutableDoubleStacktoImmutable()MutableDoubleListtoList()MutableDoubleSettoSet()double[]toSortedArray()MutableDoubleListtoSortedList()StringtoString()-
Methods inherited from interface org.eclipse.collections.api.DoubleIterable
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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.stack.primitive.MutableDoubleStack
rejectWithIndex, selectWithIndex, tap
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable
rejectWithIndex, selectWithIndex
-
-
-
-
Constructor Detail
-
UnmodifiableDoubleStack
public UnmodifiableDoubleStack(MutableDoubleStack stack)
-
-
Method Detail
-
push
public void push(double item)
- Specified by:
pushin interfaceMutableDoubleStack
-
pop
public double pop()
- Specified by:
popin interfaceMutableDoubleStack
-
pop
public DoubleList pop(int count)
- Specified by:
popin interfaceMutableDoubleStack
-
peek
public double peek()
- Specified by:
peekin interfaceDoubleStack
-
peek
public DoubleList peek(int count)
- Specified by:
peekin interfaceDoubleStack
-
peekAt
public double peekAt(int index)
- Specified by:
peekAtin interfaceDoubleStack
-
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 interfaceMutableDoubleStack
-
contains
public boolean contains(double value)
- Specified by:
containsin interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source)
- Specified by:
containsAllin interfaceDoubleIterable
-
containsAll
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAllin interfaceDoubleIterable
-
doubleIterator
public DoubleIterator doubleIterator()
- Specified by:
doubleIteratorin interfaceDoubleIterable
-
each
public void each(DoubleProcedure procedure)
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNonein interfaceDoubleIterable
-
select
public MutableDoubleStack select(DoublePredicate predicate)
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleStack- Specified by:
selectin interfaceMutableDoubleStack- Specified by:
selectin interfaceOrderedDoubleIterable
-
reject
public MutableDoubleStack reject(DoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleStack- Specified by:
rejectin interfaceMutableDoubleStack- Specified by:
rejectin interfaceOrderedDoubleIterable
-
collect
public <V> MutableStack<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleStack- Specified by:
collectin interfaceMutableDoubleStack- Specified by:
collectin interfaceOrderedDoubleIterable
-
sum
public double sum()
- Specified by:
sumin interfaceDoubleIterable
-
max
public double max()
- Specified by:
maxin interfaceDoubleIterable
-
min
public double min()
- Specified by:
minin interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)
- Specified by:
minIfEmptyin interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)
- Specified by:
maxIfEmptyin interfaceDoubleIterable
-
average
public double average()
- Specified by:
averagein interfaceDoubleIterable
-
median
public double median()
- Specified by:
medianin interfaceDoubleIterable
-
toSortedList
public MutableDoubleList toSortedList()
- Specified by:
toSortedListin interfaceDoubleIterable
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArrayin interfaceDoubleIterable
-
toArray
public double[] toArray()
- Specified by:
toArrayin interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target)
- Specified by:
toArrayin interfaceDoubleIterable
-
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
-
toList
public MutableDoubleList toList()
- Specified by:
toListin interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBagin interfaceDoubleIterable
-
equals
public boolean equals(Object otherStack)
- Specified by:
equalsin interfaceDoubleStack- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleStack- Overrides:
hashCodein classObject
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazyin interfaceDoubleIterable
-
asUnmodifiable
public MutableDoubleStack asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleStack
-
asSynchronized
public MutableDoubleStack asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleStack
-
toImmutable
public ImmutableDoubleStack toImmutable()
- Specified by:
toImmutablein interfaceDoubleStack
-
newEmpty
public MutableDoubleStack newEmpty()
- Specified by:
newEmptyin interfaceMutableDoubleStack- Since:
- 9.2.
-
injectInto
public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunkin interfaceDoubleIterable
-
getFirst
public double getFirst()
- Specified by:
getFirstin interfaceOrderedDoubleIterable
-
indexOf
public int indexOf(double value)
- Specified by:
indexOfin interfaceOrderedDoubleIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectDoubleIntToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoWithIndexin interfaceOrderedDoubleIterable
-
forEachWithIndex
public void forEachWithIndex(DoubleIntProcedure procedure)
- Specified by:
forEachWithIndexin interfaceOrderedDoubleIterable
-
collectWithIndex
public <V> MutableStack<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceDoubleStack- Specified by:
collectWithIndexin interfaceMutableDoubleStack- Specified by:
collectWithIndexin interfaceOrderedDoubleIterable- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R collectWithIndex(DoubleIntToObjectFunction<? 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 interfaceOrderedDoubleIterable- Since:
- 9.1.
-
-