Class AbstractUnmodifiableDoubleCollection
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection
-
- All Implemented Interfaces:
Serializable
,MutableDoubleCollection
,DoubleIterable
,PrimitiveIterable
- Direct Known Subclasses:
UnmodifiableDoubleBag
,UnmodifiableDoubleCollection
,UnmodifiableDoubleList
,UnmodifiableDoubleSet
public abstract class AbstractUnmodifiableDoubleCollection extends Object implements MutableDoubleCollection, Serializable
This file was automatically generated from template file abstractUnmodifiablePrimitiveCollection.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:
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 interfaceMutableDoubleCollection
-
contains
public boolean contains(double value)
- Specified by:
contains
in interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source)
- Specified by:
containsAll
in interfaceDoubleIterable
-
containsAll
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAll
in interfaceDoubleIterable
-
containsAny
public boolean containsAny(double... source)
- Specified by:
containsAny
in interfaceDoubleIterable
-
containsAny
public boolean containsAny(DoubleIterable source)
- Specified by:
containsAny
in interfaceDoubleIterable
-
containsNone
public boolean containsNone(double... source)
- Specified by:
containsNone
in interfaceDoubleIterable
-
containsNone
public boolean containsNone(DoubleIterable source)
- Specified by:
containsNone
in interfaceDoubleIterable
-
add
public boolean add(double newItem)
- Specified by:
add
in interfaceMutableDoubleCollection
-
addAll
public boolean addAll(double... source)
- Specified by:
addAll
in interfaceMutableDoubleCollection
-
addAll
public boolean addAll(DoubleIterable source)
- Specified by:
addAll
in interfaceMutableDoubleCollection
-
remove
public boolean remove(double value)
- Specified by:
remove
in interfaceMutableDoubleCollection
-
removeIf
public boolean removeIf(DoublePredicate predicate)
- Specified by:
removeIf
in interfaceMutableDoubleCollection
- Since:
- 9.1
-
removeAll
public boolean removeAll(DoubleIterable source)
- Specified by:
removeAll
in interfaceMutableDoubleCollection
-
removeAll
public boolean removeAll(double... source)
- Specified by:
removeAll
in interfaceMutableDoubleCollection
-
retainAll
public boolean retainAll(DoubleIterable source)
- Specified by:
retainAll
in interfaceMutableDoubleCollection
-
retainAll
public boolean retainAll(double... source)
- Specified by:
retainAll
in interfaceMutableDoubleCollection
-
doubleIterator
public MutableDoubleIterator doubleIterator()
- Specified by:
doubleIterator
in interfaceDoubleIterable
- Specified by:
doubleIterator
in interfaceMutableDoubleCollection
-
each
public void each(DoubleProcedure procedure)
- Specified by:
each
in interfaceDoubleIterable
- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
count
in interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfy
in interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfy
in interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfy
in interfaceDoubleIterable
-
select
public MutableDoubleCollection select(DoublePredicate predicate)
- Specified by:
select
in interfaceDoubleIterable
- Specified by:
select
in interfaceMutableDoubleCollection
-
reject
public MutableDoubleCollection reject(DoublePredicate predicate)
- Specified by:
reject
in interfaceDoubleIterable
- Specified by:
reject
in interfaceMutableDoubleCollection
-
collect
public <V> MutableCollection<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceDoubleIterable
- Specified by:
collect
in interfaceMutableDoubleCollection
-
with
public MutableDoubleCollection with(double element)
- Specified by:
with
in interfaceMutableDoubleCollection
-
without
public MutableDoubleCollection without(double element)
- Specified by:
without
in interfaceMutableDoubleCollection
-
withAll
public MutableDoubleCollection withAll(DoubleIterable elements)
- Specified by:
withAll
in interfaceMutableDoubleCollection
-
withoutAll
public MutableDoubleCollection withoutAll(DoubleIterable elements)
- Specified by:
withoutAll
in interfaceMutableDoubleCollection
-
asUnmodifiable
public MutableDoubleCollection asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableDoubleCollection
-
asSynchronized
public MutableDoubleCollection asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableDoubleCollection
-
toImmutable
public ImmutableDoubleCollection toImmutable()
- Specified by:
toImmutable
in interfaceMutableDoubleCollection
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazy
in interfaceDoubleIterable
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNone
in interfaceDoubleIterable
-
sum
public double sum()
- Specified by:
sum
in interfaceDoubleIterable
-
max
public double max()
- Specified by:
max
in interfaceDoubleIterable
-
min
public double min()
- Specified by:
min
in interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)
- Specified by:
minIfEmpty
in interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)
- Specified by:
maxIfEmpty
in interfaceDoubleIterable
-
average
public double average()
- Specified by:
average
in interfaceDoubleIterable
-
median
public double median()
- Specified by:
median
in interfaceDoubleIterable
-
toSortedList
public MutableDoubleList toSortedList()
- Specified by:
toSortedList
in interfaceDoubleIterable
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArray
in interfaceDoubleIterable
-
toArray
public double[] toArray()
- Specified by:
toArray
in interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target)
- Specified by:
toArray
in interfaceDoubleIterable
-
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 MutableDoubleList toList()
- Specified by:
toList
in interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSet
in interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBag
in interfaceDoubleIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceDoubleIterable
-
reduce
public double reduce(DoubleDoubleToDoubleFunction accumulator)
- Specified by:
reduce
in interfaceDoubleIterable
-
reduceIfEmpty
public double reduceIfEmpty(DoubleDoubleToDoubleFunction accumulator, double defaultValue)
- Specified by:
reduceIfEmpty
in interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunk
in interfaceDoubleIterable
-
-