public class SynchronizedFloatStack extends Object implements MutableFloatStack, Serializable
MutableFloatStack. It is imperative that the user manually synchronize on the collection when iterating over it using the
FloatIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveStack.stg.
MutableFloatStack.asSynchronized(),
MutableStack.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedFloatStack(MutableFloatStack stack) |
SynchronizedFloatStack(MutableFloatStack stack,
Object newLock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(FloatPredicate predicate) |
boolean |
anySatisfy(FloatPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
LazyFloatIterable |
asLazy() |
MutableFloatStack |
asSynchronized() |
MutableFloatStack |
asUnmodifiable() |
double |
average() |
RichIterable<FloatIterable> |
chunk(int size) |
void |
clear() |
<V> MutableStack<V> |
collect(FloatToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
collectWithIndex(FloatIntToObjectFunction<? 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(FloatIntToObjectFunction<? 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(float value) |
boolean |
containsAll(float... source) |
boolean |
containsAll(FloatIterable source) |
int |
count(FloatPredicate predicate) |
float |
detectIfNone(FloatPredicate predicate,
float ifNone) |
void |
each(FloatProcedure procedure) |
boolean |
equals(Object otherStack) |
FloatIterator |
floatIterator()
Must be called in a synchronized block.
|
void |
forEachWithIndex(FloatIntProcedure procedure) |
float |
getFirst() |
int |
hashCode() |
int |
indexOf(float value) |
<T> T |
injectInto(T injectedValue,
ObjectFloatToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectFloatIntToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
float |
max() |
float |
maxIfEmpty(float defaultValue) |
double |
median() |
float |
min() |
float |
minIfEmpty(float defaultValue) |
MutableFloatStack |
newEmpty() |
boolean |
noneSatisfy(FloatPredicate predicate) |
boolean |
notEmpty() |
float |
peek() |
FloatList |
peek(int count) |
float |
peekAt(int index) |
float |
pop() |
FloatList |
pop(int count) |
void |
push(float item) |
MutableFloatStack |
reject(FloatPredicate predicate) |
MutableFloatStack |
rejectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatStack excluding all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableFloatCollection> |
rejectWithIndex(FloatIntPredicate predicate,
R target)
Returns a new MutableFloatCollection excluding all elements with corresponding indexes matching the specified predicate.
|
MutableFloatStack |
select(FloatPredicate predicate) |
MutableFloatStack |
selectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatStack including all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableFloatCollection> |
selectWithIndex(FloatIntPredicate predicate,
R target)
Returns a new MutableFloatCollection including all elements with corresponding indexes matching the specified predicate.
|
int |
size() |
double |
sum() |
float[] |
toArray() |
float[] |
toArray(float[] target) |
MutableFloatBag |
toBag() |
ImmutableFloatStack |
toImmutable() |
MutableFloatList |
toList() |
MutableFloatSet |
toSet() |
float[] |
toSortedArray() |
MutableFloatList |
toSortedList() |
String |
toString() |
tapaverageIfEmpty, 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 SynchronizedFloatStack(MutableFloatStack stack)
public SynchronizedFloatStack(MutableFloatStack stack, Object newLock)
public void push(float item)
push in interface MutableFloatStackpublic float pop()
pop in interface MutableFloatStackpublic FloatList pop(int count)
pop in interface MutableFloatStackpublic float peek()
peek in interface FloatStackpublic FloatList peek(int count)
peek in interface FloatStackpublic float peekAt(int index)
peekAt in interface FloatStackpublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic void clear()
clear in interface MutableFloatStackpublic boolean contains(float value)
contains in interface FloatIterablepublic boolean containsAll(float... source)
containsAll in interface FloatIterablepublic boolean containsAll(FloatIterable source)
containsAll in interface FloatIterablepublic FloatIterator floatIterator()
floatIterator in interface FloatIterablepublic void each(FloatProcedure procedure)
each in interface FloatIterablepublic int count(FloatPredicate predicate)
count in interface FloatIterablepublic boolean anySatisfy(FloatPredicate predicate)
anySatisfy in interface FloatIterablepublic boolean allSatisfy(FloatPredicate predicate)
allSatisfy in interface FloatIterablepublic boolean noneSatisfy(FloatPredicate predicate)
noneSatisfy in interface FloatIterablepublic float detectIfNone(FloatPredicate predicate, float ifNone)
detectIfNone in interface FloatIterablepublic MutableFloatStack select(FloatPredicate predicate)
select in interface FloatIterableselect in interface OrderedFloatIterableselect in interface FloatStackselect in interface MutableFloatStackpublic MutableFloatStack reject(FloatPredicate predicate)
reject in interface FloatIterablereject in interface OrderedFloatIterablereject in interface FloatStackreject in interface MutableFloatStackpublic <V> MutableStack<V> collect(FloatToObjectFunction<? extends V> function)
collect in interface FloatIterablecollect in interface OrderedFloatIterablecollect in interface FloatStackcollect in interface MutableFloatStackpublic double sum()
sum in interface FloatIterablepublic float max()
max in interface FloatIterablepublic float min()
min in interface FloatIterablepublic float minIfEmpty(float defaultValue)
minIfEmpty in interface FloatIterablepublic float maxIfEmpty(float defaultValue)
maxIfEmpty in interface FloatIterablepublic double average()
average in interface FloatIterablepublic double median()
median in interface FloatIterablepublic MutableFloatList toSortedList()
toSortedList in interface FloatIterablepublic float[] toSortedArray()
toSortedArray in interface FloatIterablepublic float[] toArray()
toArray in interface FloatIterablepublic float[] toArray(float[] target)
toArray in interface FloatIterablepublic 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 MutableFloatList toList()
toList in interface FloatIterablepublic MutableFloatSet toSet()
toSet in interface FloatIterablepublic MutableFloatBag toBag()
toBag in interface FloatIterablepublic boolean equals(Object otherStack)
equals in interface FloatStackequals in class Objectpublic int hashCode()
hashCode in interface FloatStackhashCode in class Objectpublic LazyFloatIterable asLazy()
asLazy in interface FloatIterablepublic MutableFloatStack asUnmodifiable()
asUnmodifiable in interface MutableFloatStackpublic MutableFloatStack asSynchronized()
asSynchronized in interface MutableFloatStackpublic ImmutableFloatStack toImmutable()
toImmutable in interface FloatStackpublic MutableFloatStack newEmpty()
newEmpty in interface MutableFloatStackpublic <T> T injectInto(T injectedValue,
ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface FloatIterablepublic RichIterable<FloatIterable> chunk(int size)
chunk in interface FloatIterablepublic float getFirst()
getFirst in interface OrderedFloatIterablepublic int indexOf(float value)
indexOf in interface OrderedFloatIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectFloatIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedFloatIterablepublic void forEachWithIndex(FloatIntProcedure procedure)
forEachWithIndex in interface OrderedFloatIterablepublic MutableFloatStack selectWithIndex(FloatIntPredicate predicate)
selectWithIndex in interface OrderedFloatIterableselectWithIndex in interface FloatStackselectWithIndex in interface MutableFloatStackpublic <R extends MutableFloatCollection> R selectWithIndex(FloatIntPredicate predicate, R target)
selectWithIndex in interface OrderedFloatIterablepublic MutableFloatStack rejectWithIndex(FloatIntPredicate predicate)
rejectWithIndex in interface OrderedFloatIterablerejectWithIndex in interface FloatStackrejectWithIndex in interface MutableFloatStackpublic <R extends MutableFloatCollection> R rejectWithIndex(FloatIntPredicate predicate, R target)
rejectWithIndex in interface OrderedFloatIterablepublic <V> MutableStack<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedFloatIterablecollectWithIndex in interface FloatStackcollectWithIndex in interface MutableFloatStackpublic <V,R extends Collection<V>> R collectWithIndex(FloatIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedFloatIterableCopyright © 2004–2022. All rights reserved.