Class AbstractSynchronizedFloatCollection
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection
-
- All Implemented Interfaces:
Serializable
,MutableFloatCollection
,FloatIterable
,PrimitiveIterable
- Direct Known Subclasses:
SynchronizedFloatBag
,SynchronizedFloatCollection
,SynchronizedFloatList
,SynchronizedFloatSet
public abstract class AbstractSynchronizedFloatCollection extends Object implements MutableFloatCollection, Serializable
This file was automatically generated from template file abstractSynchronizedPrimitiveCollection.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.FloatIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableFloatCollection
newEmpty, tap
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableFloatCollection
-
select
public MutableFloatCollection select(FloatPredicate predicate)
- Specified by:
select
in interfaceFloatIterable
- Specified by:
select
in interfaceMutableFloatCollection
-
reject
public MutableFloatCollection reject(FloatPredicate predicate)
- Specified by:
reject
in interfaceFloatIterable
- Specified by:
reject
in interfaceMutableFloatCollection
-
collect
public <V> MutableCollection<V> collect(FloatToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceFloatIterable
- Specified by:
collect
in interfaceMutableFloatCollection
-
with
public MutableFloatCollection with(float element)
- Specified by:
with
in interfaceMutableFloatCollection
-
without
public MutableFloatCollection without(float element)
- Specified by:
without
in interfaceMutableFloatCollection
-
withAll
public MutableFloatCollection withAll(FloatIterable elements)
- Specified by:
withAll
in interfaceMutableFloatCollection
-
withoutAll
public MutableFloatCollection withoutAll(FloatIterable elements)
- Specified by:
withoutAll
in interfaceMutableFloatCollection
-
asUnmodifiable
public MutableFloatCollection asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatCollection
-
asSynchronized
public MutableFloatCollection asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatCollection
-
toImmutable
public ImmutableFloatCollection toImmutable()
- Specified by:
toImmutable
in interfaceMutableFloatCollection
-
asLazy
public LazyFloatIterable asLazy()
- Specified by:
asLazy
in interfaceFloatIterable
-
contains
public boolean contains(float value)
- Specified by:
contains
in interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source)
- Specified by:
containsAll
in interfaceFloatIterable
-
containsAll
public boolean containsAll(FloatIterable source)
- Specified by:
containsAll
in interfaceFloatIterable
-
containsAny
public boolean containsAny(float... source)
- Specified by:
containsAny
in interfaceFloatIterable
-
containsAny
public boolean containsAny(FloatIterable source)
- Specified by:
containsAny
in interfaceFloatIterable
-
containsNone
public boolean containsNone(float... source)
- Specified by:
containsNone
in interfaceFloatIterable
-
containsNone
public boolean containsNone(FloatIterable source)
- Specified by:
containsNone
in interfaceFloatIterable
-
add
public boolean add(float newItem)
- Specified by:
add
in interfaceMutableFloatCollection
-
addAll
public boolean addAll(float... source)
- Specified by:
addAll
in interfaceMutableFloatCollection
-
addAll
public boolean addAll(FloatIterable source)
- Specified by:
addAll
in interfaceMutableFloatCollection
-
remove
public boolean remove(float value)
- Specified by:
remove
in interfaceMutableFloatCollection
-
removeIf
public boolean removeIf(FloatPredicate predicate)
- Specified by:
removeIf
in interfaceMutableFloatCollection
-
removeAll
public boolean removeAll(FloatIterable source)
- Specified by:
removeAll
in interfaceMutableFloatCollection
-
removeAll
public boolean removeAll(float... source)
- Specified by:
removeAll
in interfaceMutableFloatCollection
-
retainAll
public boolean retainAll(FloatIterable source)
- Specified by:
retainAll
in interfaceMutableFloatCollection
-
retainAll
public boolean retainAll(float... source)
- Specified by:
retainAll
in interfaceMutableFloatCollection
-
floatIterator
public MutableFloatIterator floatIterator()
Must be called in a synchronized block.- Specified by:
floatIterator
in interfaceFloatIterable
- Specified by:
floatIterator
in interfaceMutableFloatCollection
-
each
public void each(FloatProcedure procedure)
- Specified by:
each
in interfaceFloatIterable
- Since:
- 7.0.
-
count
public int count(FloatPredicate predicate)
- Specified by:
count
in interfaceFloatIterable
-
anySatisfy
public boolean anySatisfy(FloatPredicate predicate)
- Specified by:
anySatisfy
in interfaceFloatIterable
-
allSatisfy
public boolean allSatisfy(FloatPredicate predicate)
- Specified by:
allSatisfy
in interfaceFloatIterable
-
noneSatisfy
public boolean noneSatisfy(FloatPredicate predicate)
- Specified by:
noneSatisfy
in interfaceFloatIterable
-
detectIfNone
public float detectIfNone(FloatPredicate predicate, float ifNone)
- Specified by:
detectIfNone
in interfaceFloatIterable
-
sum
public double sum()
- Specified by:
sum
in interfaceFloatIterable
-
max
public float max()
- Specified by:
max
in interfaceFloatIterable
-
min
public float min()
- Specified by:
min
in interfaceFloatIterable
-
minIfEmpty
public float minIfEmpty(float defaultValue)
- Specified by:
minIfEmpty
in interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue)
- Specified by:
maxIfEmpty
in interfaceFloatIterable
-
average
public double average()
- Specified by:
average
in interfaceFloatIterable
-
median
public double median()
- Specified by:
median
in interfaceFloatIterable
-
toSortedList
public MutableFloatList toSortedList()
- Specified by:
toSortedList
in interfaceFloatIterable
-
toSortedArray
public float[] toSortedArray()
- Specified by:
toSortedArray
in interfaceFloatIterable
-
toArray
public float[] toArray()
- Specified by:
toArray
in interfaceFloatIterable
-
toArray
public float[] toArray(float[] target)
- Specified by:
toArray
in interfaceFloatIterable
-
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
-
toList
public MutableFloatList toList()
- Specified by:
toList
in interfaceFloatIterable
-
toSet
public MutableFloatSet toSet()
- Specified by:
toSet
in interfaceFloatIterable
-
toBag
public MutableFloatBag toBag()
- Specified by:
toBag
in interfaceFloatIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceFloatIterable
-
reduce
public double reduce(DoubleFloatToDoubleFunction accumulator)
- Specified by:
reduce
in interfaceFloatIterable
-
reduceIfEmpty
public double reduceIfEmpty(DoubleFloatToDoubleFunction accumulator, double defaultValue)
- Specified by:
reduceIfEmpty
in interfaceFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunk
in interfaceFloatIterable
-
-