Class SynchronizedFloatStack
java.lang.Object
org.eclipse.collections.impl.stack.mutable.primitive.SynchronizedFloatStack
- All Implemented Interfaces:
Serializable,FloatIterable,OrderedFloatIterable,PrimitiveIterable,FloatStack,MutableFloatStack
A synchronized view of a
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.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(FloatPredicate predicate) booleananySatisfy(FloatPredicate 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(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>>
RcollectWithIndex(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.booleancontains(float value) booleancontainsAll(float... source) booleancontainsAll(FloatIterable source) intcount(FloatPredicate predicate) floatdetectIfNone(FloatPredicate predicate, float ifNone) voideach(FloatProcedure procedure) booleanMust be called in a synchronized block.voidforEachWithIndex(FloatIntProcedure procedure) floatgetFirst()inthashCode()intindexOf(float value) <T> TinjectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) <T> TinjectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) floatmax()floatmaxIfEmpty(float defaultValue) doublemedian()floatmin()floatminIfEmpty(float defaultValue) newEmpty()booleannoneSatisfy(FloatPredicate predicate) booleannotEmpty()floatpeek()peek(int count) floatpeekAt(int index) floatpop()pop(int count) voidpush(float item) reject(FloatPredicate predicate) rejectWithIndex(FloatIntPredicate predicate) Returns a new MutableFloatStack excluding all elements with corresponding indexes matching the specified predicate.<R extends MutableFloatCollection>
RrejectWithIndex(FloatIntPredicate predicate, R target) Returns a new MutableFloatCollection excluding all elements with corresponding indexes matching the specified predicate.select(FloatPredicate predicate) selectWithIndex(FloatIntPredicate predicate) Returns a new MutableFloatStack including all elements with corresponding indexes matching the specified predicate.<R extends MutableFloatCollection>
RselectWithIndex(FloatIntPredicate predicate, R target) Returns a new MutableFloatCollection including all elements with corresponding indexes matching the specified predicate.intsize()doublesum()float[]toArray()float[]toArray(float[] target) toBag()toList()toSet()float[]toStack()toString()Methods inherited from interface org.eclipse.collections.api.FloatIterable
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.MutableFloatStack
tap
-
Constructor Details
-
SynchronizedFloatStack
-
SynchronizedFloatStack
-
-
Method Details
-
push
public void push(float item) - Specified by:
pushin interfaceMutableFloatStack
-
pop
public float pop()- Specified by:
popin interfaceMutableFloatStack
-
pop
- Specified by:
popin interfaceMutableFloatStack
-
peek
public float peek()- Specified by:
peekin interfaceFloatStack
-
peek
- Specified by:
peekin interfaceFloatStack
-
peekAt
public float peekAt(int index) - Specified by:
peekAtin interfaceFloatStack
-
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 interfaceMutableFloatStack
-
contains
public boolean contains(float value) - Specified by:
containsin interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source) - Specified by:
containsAllin interfaceFloatIterable
-
containsAll
- Specified by:
containsAllin interfaceFloatIterable
-
floatIterator
Must be called in a synchronized block.- Specified by:
floatIteratorin interfaceFloatIterable
-
each
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceFloatIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceFloatIterable
-
select
- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatStack- Specified by:
selectin interfaceMutableFloatStack- Specified by:
selectin interfaceOrderedFloatIterable
-
reject
- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatStack- Specified by:
rejectin interfaceMutableFloatStack- Specified by:
rejectin interfaceOrderedFloatIterable
-
collect
- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceFloatStack- Specified by:
collectin interfaceMutableFloatStack- Specified by:
collectin interfaceOrderedFloatIterable
-
sum
public double sum()- Specified by:
sumin interfaceFloatIterable
-
max
public float max()- Specified by:
maxin interfaceFloatIterable
-
min
public float min()- Specified by:
minin interfaceFloatIterable
-
minIfEmpty
public float minIfEmpty(float defaultValue) - Specified by:
minIfEmptyin interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue) - Specified by:
maxIfEmptyin interfaceFloatIterable
-
average
public double average()- Specified by:
averagein interfaceFloatIterable
-
median
public double median()- Specified by:
medianin interfaceFloatIterable
-
toSortedList
- Specified by:
toSortedListin interfaceFloatIterable
-
toSortedArray
public float[] toSortedArray()- Specified by:
toSortedArrayin interfaceFloatIterable
-
toArray
public float[] toArray()- Specified by:
toArrayin interfaceFloatIterable
-
toArray
public float[] toArray(float[] target) - Specified by:
toArrayin interfaceFloatIterable
-
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 interfaceFloatIterable
-
toSet
- Specified by:
toSetin interfaceFloatIterable
-
toBag
- Specified by:
toBagin interfaceFloatIterable
-
equals
- Specified by:
equalsin interfaceFloatStack- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatStack- Overrides:
hashCodein classObject
-
asLazy
- Specified by:
asLazyin interfaceFloatIterable
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatStack
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatStack
-
toImmutable
- Specified by:
toImmutablein interfaceFloatStack
-
newEmpty
- Specified by:
newEmptyin interfaceMutableFloatStack- Since:
- 9.2.
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceFloatIterable
-
chunk
- Specified by:
chunkin interfaceFloatIterable
-
getFirst
public float getFirst()- Specified by:
getFirstin interfaceOrderedFloatIterable
-
indexOf
public int indexOf(float value) - Specified by:
indexOfin interfaceOrderedFloatIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoWithIndexin interfaceOrderedFloatIterable
-
forEachWithIndex
- Specified by:
forEachWithIndexin interfaceOrderedFloatIterable
-
selectWithIndex
Returns a new MutableFloatStack including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceFloatStack- Specified by:
selectWithIndexin interfaceMutableFloatStack- Specified by:
selectWithIndexin interfaceOrderedFloatIterable- Since:
- 11.1.
-
selectWithIndex
Returns a new MutableFloatCollection including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceOrderedFloatIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new MutableFloatStack excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceFloatStack- Specified by:
rejectWithIndexin interfaceMutableFloatStack- Specified by:
rejectWithIndexin interfaceOrderedFloatIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new MutableFloatCollection excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedFloatIterable- Since:
- 11.1.
-
collectWithIndex
Returns a new MutableStack using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceFloatStack- Specified by:
collectWithIndexin interfaceMutableFloatStack- Specified by:
collectWithIndexin interfaceOrderedFloatIterable- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R 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.- Specified by:
collectWithIndexin interfaceOrderedFloatIterable- Since:
- 9.1.
-
toStack
- Specified by:
toStackin interfaceOrderedFloatIterable
-