Class AbstractDoubleStack
- java.lang.Object
-
- org.eclipse.collections.impl.stack.primitive.AbstractDoubleStack
-
- All Implemented Interfaces:
DoubleIterable
,OrderedDoubleIterable
,PrimitiveIterable
,DoubleStack
- Direct Known Subclasses:
DoubleArrayStack
public abstract class AbstractDoubleStack extends Object implements DoubleStack
This file was automatically generated from template file abstractPrimitiveStack.stg.
-
-
Constructor Summary
Constructors Constructor Description AbstractDoubleStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allSatisfy(DoublePredicate predicate)
boolean
anySatisfy(DoublePredicate predicate)
void
appendString(Appendable appendable)
void
appendString(Appendable appendable, String separator)
void
appendString(Appendable appendable, String start, String separator, String end)
LazyDoubleIterable
asLazy()
double
average()
RichIterable<DoubleIterable>
chunk(int size)
boolean
contains(double value)
boolean
containsAll(double... source)
boolean
containsAll(DoubleIterable source)
int
count(DoublePredicate predicate)
double
detectIfNone(DoublePredicate predicate, double ifNone)
DoubleIterator
doubleIterator()
void
each(DoubleProcedure procedure)
boolean
equals(Object otherStack)
void
forEachWithIndex(DoubleIntProcedure procedure)
double
getFirst()
int
hashCode()
int
indexOf(double value)
<V> V
injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)
<T> T
injectIntoWithIndex(T injectedValue, ObjectDoubleIntToObjectFunction<? super T,? extends T> function)
String
makeString()
String
makeString(String separator)
String
makeString(String start, String separator, String end)
double
max()
double
maxIfEmpty(double defaultValue)
double
median()
double
min()
double
minIfEmpty(double defaultValue)
boolean
noneSatisfy(DoublePredicate predicate)
double
peek()
DoubleList
peek(int count)
double
peekAt(int index)
int
size()
double
sum()
double[]
toArray()
double[]
toArray(double[] target)
MutableDoubleBag
toBag()
MutableDoubleList
toList()
MutableDoubleSet
toSet()
double[]
toSortedArray()
String
toString()
-
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, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.stack.primitive.DoubleStack
collect, collectWithIndex, reject, rejectWithIndex, select, selectWithIndex, tap, toImmutable
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable
collectWithIndex, rejectWithIndex, selectWithIndex
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
isEmpty, notEmpty
-
-
-
-
Method Detail
-
peek
public double peek()
- Specified by:
peek
in interfaceDoubleStack
-
peek
public DoubleList peek(int count)
- Specified by:
peek
in interfaceDoubleStack
-
peekAt
public double peekAt(int index)
- Specified by:
peekAt
in interfaceDoubleStack
-
doubleIterator
public DoubleIterator doubleIterator()
- Specified by:
doubleIterator
in interfaceDoubleIterable
-
each
public void each(DoubleProcedure procedure)
- Specified by:
each
in interfaceDoubleIterable
- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
count
in interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfy
in interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfy
in interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfy
in interfaceDoubleIterable
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNone
in interfaceDoubleIterable
-
toArray
public double[] toArray()
- Specified by:
toArray
in interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target)
- Specified by:
toArray
in interfaceDoubleIterable
-
contains
public boolean contains(double value)
- Specified by:
contains
in interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source)
- Specified by:
containsAll
in interfaceDoubleIterable
-
containsAll
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAll
in interfaceDoubleIterable
-
toList
public MutableDoubleList toList()
- Specified by:
toList
in interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSet
in interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBag
in interfaceDoubleIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)
- Specified by:
injectInto
in interfaceDoubleIterable
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazy
in interfaceDoubleIterable
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
equals
public boolean equals(Object otherStack)
- Specified by:
equals
in interfaceDoubleStack
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceDoubleStack
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
getFirst
public double getFirst()
- Specified by:
getFirst
in interfaceOrderedDoubleIterable
-
indexOf
public int indexOf(double value)
- Specified by:
indexOf
in interfaceOrderedDoubleIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectDoubleIntToObjectFunction<? super T,? extends T> function)
- Specified by:
injectIntoWithIndex
in interfaceOrderedDoubleIterable
-
forEachWithIndex
public void forEachWithIndex(DoubleIntProcedure procedure)
- Specified by:
forEachWithIndex
in interfaceOrderedDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunk
in interfaceDoubleIterable
-
sum
public double sum()
- Specified by:
sum
in interfaceDoubleIterable
-
max
public double max()
- Specified by:
max
in interfaceDoubleIterable
-
min
public double min()
- Specified by:
min
in interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)
- Specified by:
minIfEmpty
in interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)
- Specified by:
maxIfEmpty
in interfaceDoubleIterable
-
average
public double average()
- Specified by:
average
in interfaceDoubleIterable
-
median
public double median()
- Specified by:
median
in interfaceDoubleIterable
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArray
in interfaceDoubleIterable
-
-