Class UnmodifiableDoubleBag
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection
org.eclipse.collections.impl.bag.mutable.primitive.UnmodifiableDoubleBag
- All Implemented Interfaces:
Serializable,DoubleBag,MutableDoubleBag,MutableDoubleCollection,DoubleIterable,PrimitiveIterable
public class UnmodifiableDoubleBag
extends AbstractUnmodifiableDoubleCollection
implements MutableDoubleBag
This file was automatically generated from template file unmodifiablePrimitiveBag.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOccurrences(double item, int occurrences) bottomOccurrences(int count) <V> MutableBag<V>collect(DoubleToObjectFunction<? extends V> function) booleanvoidforEachWithOccurrences(DoubleIntProcedure procedure) inthashCode()newEmpty()intoccurrencesOf(double item) reject(DoublePredicate predicate) booleanremoveOccurrences(double item, int occurrences) select(DoublePredicate predicate) selectByOccurrences(IntPredicate predicate) inttopOccurrences(int count) with(double element) withAll(DoubleIterable elements) without(double element) withoutAll(DoubleIterable elements) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.bag.primitive.DoubleBag
toStringOfItemToCountMethods inherited from interface org.eclipse.collections.api.DoubleIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.bag.primitive.MutableDoubleBag
selectDuplicates, tapMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollection
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
UnmodifiableDoubleBag
-
-
Method Details
-
with
- Specified by:
within interfaceMutableDoubleBag- Specified by:
within interfaceMutableDoubleCollection- Overrides:
within classAbstractUnmodifiableDoubleCollection
-
without
- Specified by:
withoutin interfaceMutableDoubleBag- Specified by:
withoutin interfaceMutableDoubleCollection- Overrides:
withoutin classAbstractUnmodifiableDoubleCollection
-
withAll
- Specified by:
withAllin interfaceMutableDoubleBag- Specified by:
withAllin interfaceMutableDoubleCollection- Overrides:
withAllin classAbstractUnmodifiableDoubleCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableDoubleBag- Specified by:
withoutAllin interfaceMutableDoubleCollection- Overrides:
withoutAllin classAbstractUnmodifiableDoubleCollection
-
addOccurrences
public void addOccurrences(double item, int occurrences) - Specified by:
addOccurrencesin interfaceMutableDoubleBag
-
removeOccurrences
public boolean removeOccurrences(double item, int occurrences) - Specified by:
removeOccurrencesin interfaceMutableDoubleBag
-
sizeDistinct
public int sizeDistinct()- Specified by:
sizeDistinctin interfaceDoubleBag
-
occurrencesOf
public int occurrencesOf(double item) - Specified by:
occurrencesOfin interfaceDoubleBag
-
forEachWithOccurrences
- Specified by:
forEachWithOccurrencesin interfaceDoubleBag
-
selectByOccurrences
- Specified by:
selectByOccurrencesin interfaceDoubleBag- Specified by:
selectByOccurrencesin interfaceMutableDoubleBag
-
selectUnique
- Specified by:
selectUniquein interfaceDoubleBag- Specified by:
selectUniquein interfaceMutableDoubleBag
-
topOccurrences
- Specified by:
topOccurrencesin interfaceDoubleBag- Specified by:
topOccurrencesin interfaceMutableDoubleBag
-
bottomOccurrences
- Specified by:
bottomOccurrencesin interfaceDoubleBag- Specified by:
bottomOccurrencesin interfaceMutableDoubleBag
-
select
- Specified by:
selectin interfaceDoubleBag- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceMutableDoubleBag- Specified by:
selectin interfaceMutableDoubleCollection- Overrides:
selectin classAbstractUnmodifiableDoubleCollection
-
reject
- Specified by:
rejectin interfaceDoubleBag- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceMutableDoubleBag- Specified by:
rejectin interfaceMutableDoubleCollection- Overrides:
rejectin classAbstractUnmodifiableDoubleCollection
-
collect
- Specified by:
collectin interfaceDoubleBag- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceMutableDoubleBag- Specified by:
collectin interfaceMutableDoubleCollection- Overrides:
collectin classAbstractUnmodifiableDoubleCollection
-
equals
-
hashCode
public int hashCode() -
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleBag- Specified by:
asUnmodifiablein interfaceMutableDoubleCollection- Overrides:
asUnmodifiablein classAbstractUnmodifiableDoubleCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleBag- Specified by:
asSynchronizedin interfaceMutableDoubleCollection- Overrides:
asSynchronizedin classAbstractUnmodifiableDoubleCollection
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleBag- Specified by:
toImmutablein interfaceMutableDoubleBag- Specified by:
toImmutablein interfaceMutableDoubleCollection- Overrides:
toImmutablein classAbstractUnmodifiableDoubleCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableDoubleBag- Specified by:
newEmptyin interfaceMutableDoubleCollection- Since:
- 9.2.
-