public class UnmodifiableDoubleStack extends Object implements MutableDoubleStack, Serializable
| Constructor and Description |
|---|
UnmodifiableDoubleStack(MutableDoubleStack stack) |
| Modifier and Type | Method and 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() |
MutableDoubleStack |
asSynchronized() |
MutableDoubleStack |
asUnmodifiable() |
double |
average() |
RichIterable<DoubleIterable> |
chunk(int size) |
void |
clear() |
<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>> |
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.
|
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) |
<T> T |
injectInto(T injectedValue,
ObjectDoubleToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectDoubleIntToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
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) |
MutableDoubleStack |
newEmpty() |
boolean |
noneSatisfy(DoublePredicate predicate) |
boolean |
notEmpty() |
double |
peek() |
DoubleList |
peek(int count) |
double |
peekAt(int index) |
double |
pop() |
DoubleList |
pop(int count) |
void |
push(double item) |
MutableDoubleStack |
reject(DoublePredicate predicate) |
MutableDoubleStack |
select(DoublePredicate predicate) |
int |
size() |
double |
sum() |
double[] |
toArray() |
double[] |
toArray(double[] target) |
MutableDoubleBag |
toBag() |
ImmutableDoubleStack |
toImmutable() |
MutableDoubleList |
toList() |
MutableDoubleSet |
toSet() |
double[] |
toSortedArray() |
MutableDoubleList |
toSortedList() |
String |
toString() |
rejectWithIndex, selectWithIndex, taprejectWithIndex, selectWithIndexaverageIfEmpty, 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, toSortedListBypublic UnmodifiableDoubleStack(MutableDoubleStack stack)
public void push(double item)
push in interface MutableDoubleStackpublic double pop()
pop in interface MutableDoubleStackpublic DoubleList pop(int count)
pop in interface MutableDoubleStackpublic double peek()
peek in interface DoubleStackpublic DoubleList peek(int count)
peek in interface DoubleStackpublic double peekAt(int index)
peekAt in interface DoubleStackpublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic void clear()
clear in interface MutableDoubleStackpublic boolean contains(double value)
contains in interface DoubleIterablepublic boolean containsAll(double... source)
containsAll in interface DoubleIterablepublic boolean containsAll(DoubleIterable source)
containsAll in interface DoubleIterablepublic DoubleIterator doubleIterator()
doubleIterator in interface DoubleIterablepublic void each(DoubleProcedure procedure)
each in interface DoubleIterablepublic int count(DoublePredicate predicate)
count in interface DoubleIterablepublic boolean anySatisfy(DoublePredicate predicate)
anySatisfy in interface DoubleIterablepublic boolean allSatisfy(DoublePredicate predicate)
allSatisfy in interface DoubleIterablepublic boolean noneSatisfy(DoublePredicate predicate)
noneSatisfy in interface DoubleIterablepublic double detectIfNone(DoublePredicate predicate, double ifNone)
detectIfNone in interface DoubleIterablepublic MutableDoubleStack select(DoublePredicate predicate)
select in interface DoubleIterableselect in interface OrderedDoubleIterableselect in interface DoubleStackselect in interface MutableDoubleStackpublic MutableDoubleStack reject(DoublePredicate predicate)
reject in interface DoubleIterablereject in interface OrderedDoubleIterablereject in interface DoubleStackreject in interface MutableDoubleStackpublic <V> MutableStack<V> collect(DoubleToObjectFunction<? extends V> function)
collect in interface DoubleIterablecollect in interface OrderedDoubleIterablecollect in interface DoubleStackcollect in interface MutableDoubleStackpublic double sum()
sum in interface DoubleIterablepublic double max()
max in interface DoubleIterablepublic double min()
min in interface DoubleIterablepublic double minIfEmpty(double defaultValue)
minIfEmpty in interface DoubleIterablepublic double maxIfEmpty(double defaultValue)
maxIfEmpty in interface DoubleIterablepublic double average()
average in interface DoubleIterablepublic double median()
median in interface DoubleIterablepublic MutableDoubleList toSortedList()
toSortedList in interface DoubleIterablepublic double[] toSortedArray()
toSortedArray in interface DoubleIterablepublic double[] toArray()
toArray in interface DoubleIterablepublic double[] toArray(double[] target)
toArray in interface DoubleIterablepublic String toString()
toString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
makeString in interface PrimitiveIterablepublic String makeString(String separator)
makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic MutableDoubleList toList()
toList in interface DoubleIterablepublic MutableDoubleSet toSet()
toSet in interface DoubleIterablepublic MutableDoubleBag toBag()
toBag in interface DoubleIterablepublic boolean equals(Object otherStack)
equals in interface DoubleStackequals in class Objectpublic int hashCode()
hashCode in interface DoubleStackhashCode in class Objectpublic LazyDoubleIterable asLazy()
asLazy in interface DoubleIterablepublic MutableDoubleStack asUnmodifiable()
asUnmodifiable in interface MutableDoubleStackpublic MutableDoubleStack asSynchronized()
asSynchronized in interface MutableDoubleStackpublic ImmutableDoubleStack toImmutable()
toImmutable in interface DoubleStackpublic MutableDoubleStack newEmpty()
newEmpty in interface MutableDoubleStackpublic <T> T injectInto(T injectedValue,
ObjectDoubleToObjectFunction<? super T,? extends T> function)
injectInto in interface DoubleIterablepublic RichIterable<DoubleIterable> chunk(int size)
chunk in interface DoubleIterablepublic double getFirst()
getFirst in interface OrderedDoubleIterablepublic int indexOf(double value)
indexOf in interface OrderedDoubleIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectDoubleIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedDoubleIterablepublic void forEachWithIndex(DoubleIntProcedure procedure)
forEachWithIndex in interface OrderedDoubleIterablepublic <V> MutableStack<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedDoubleIterablecollectWithIndex in interface DoubleStackcollectWithIndex in interface MutableDoubleStackpublic <V,R extends Collection<V>> R collectWithIndex(DoubleIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedDoubleIterableCopyright © 2004–2022. All rights reserved.