Class AbstractSynchronizedDoubleCollection
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection
-
- All Implemented Interfaces:
Serializable,MutableDoubleCollection,DoubleIterable,PrimitiveIterable
- Direct Known Subclasses:
SynchronizedDoubleBag,SynchronizedDoubleCollection,SynchronizedDoubleList,SynchronizedDoubleSet
public abstract class AbstractSynchronizedDoubleCollection extends Object implements MutableDoubleCollection, 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.DoubleIterable
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.MutableDoubleCollection
newEmpty, tap
-
-
-
-
Method Detail
-
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 interfaceMutableDoubleCollection
-
select
public MutableDoubleCollection select(DoublePredicate predicate)
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceMutableDoubleCollection
-
reject
public MutableDoubleCollection reject(DoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceMutableDoubleCollection
-
collect
public <V> MutableCollection<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceMutableDoubleCollection
-
with
public MutableDoubleCollection with(double element)
- Specified by:
within interfaceMutableDoubleCollection
-
without
public MutableDoubleCollection without(double element)
- Specified by:
withoutin interfaceMutableDoubleCollection
-
withAll
public MutableDoubleCollection withAll(DoubleIterable elements)
- Specified by:
withAllin interfaceMutableDoubleCollection
-
withoutAll
public MutableDoubleCollection withoutAll(DoubleIterable elements)
- Specified by:
withoutAllin interfaceMutableDoubleCollection
-
asUnmodifiable
public MutableDoubleCollection asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleCollection
-
asSynchronized
public MutableDoubleCollection asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleCollection
-
toImmutable
public ImmutableDoubleCollection toImmutable()
- Specified by:
toImmutablein interfaceMutableDoubleCollection
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazyin interfaceDoubleIterable
-
contains
public boolean contains(double value)
- Specified by:
containsin interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source)
- Specified by:
containsAllin interfaceDoubleIterable
-
containsAll
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAllin interfaceDoubleIterable
-
containsAny
public boolean containsAny(double... source)
- Specified by:
containsAnyin interfaceDoubleIterable
-
containsAny
public boolean containsAny(DoubleIterable source)
- Specified by:
containsAnyin interfaceDoubleIterable
-
containsNone
public boolean containsNone(double... source)
- Specified by:
containsNonein interfaceDoubleIterable
-
containsNone
public boolean containsNone(DoubleIterable source)
- Specified by:
containsNonein interfaceDoubleIterable
-
add
public boolean add(double newItem)
- Specified by:
addin interfaceMutableDoubleCollection
-
addAll
public boolean addAll(double... source)
- Specified by:
addAllin interfaceMutableDoubleCollection
-
addAll
public boolean addAll(DoubleIterable source)
- Specified by:
addAllin interfaceMutableDoubleCollection
-
remove
public boolean remove(double value)
- Specified by:
removein interfaceMutableDoubleCollection
-
removeIf
public boolean removeIf(DoublePredicate predicate)
- Specified by:
removeIfin interfaceMutableDoubleCollection
-
removeAll
public boolean removeAll(DoubleIterable source)
- Specified by:
removeAllin interfaceMutableDoubleCollection
-
removeAll
public boolean removeAll(double... source)
- Specified by:
removeAllin interfaceMutableDoubleCollection
-
retainAll
public boolean retainAll(DoubleIterable source)
- Specified by:
retainAllin interfaceMutableDoubleCollection
-
retainAll
public boolean retainAll(double... source)
- Specified by:
retainAllin interfaceMutableDoubleCollection
-
doubleIterator
public MutableDoubleIterator doubleIterator()
Must be called in a synchronized block.- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleCollection
-
each
public void each(DoubleProcedure procedure)
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNonein interfaceDoubleIterable
-
sum
public double sum()
- Specified by:
sumin interfaceDoubleIterable
-
max
public double max()
- Specified by:
maxin interfaceDoubleIterable
-
min
public double min()
- Specified by:
minin interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)
- Specified by:
minIfEmptyin interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)
- Specified by:
maxIfEmptyin interfaceDoubleIterable
-
average
public double average()
- Specified by:
averagein interfaceDoubleIterable
-
median
public double median()
- Specified by:
medianin interfaceDoubleIterable
-
toSortedList
public MutableDoubleList toSortedList()
- Specified by:
toSortedListin interfaceDoubleIterable
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArrayin interfaceDoubleIterable
-
toArray
public double[] toArray()
- Specified by:
toArrayin interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target)
- Specified by:
toArrayin interfaceDoubleIterable
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
public MutableDoubleList toList()
- Specified by:
toListin interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBagin interfaceDoubleIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceDoubleIterable
-
reduce
public double reduce(DoubleDoubleToDoubleFunction accumulator)
- Specified by:
reducein interfaceDoubleIterable
-
reduceIfEmpty
public double reduceIfEmpty(DoubleDoubleToDoubleFunction accumulator, double defaultValue)
- Specified by:
reduceIfEmptyin interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunkin interfaceDoubleIterable
-
-