Uses of Interface
org.eclipse.collections.api.bag.Bag
Packages that use Bag
Package
Description
This package contains interfaces for Eclipse Collections API.
This package contains interfaces for Bag API.
This package contains API for Primitive Bags with Mutable and Immutable variants.
This package contains interfaces for SortedBag API.
This package contains interfaces for map API which enhance the performance and functionality of
MapThis package contains API for primitive to primitive maps, primitive to object maps and object to primitive maps with mutable and immutable variants.
This package contains interfaces for
Multimap.This package contains interfaces for
BagMultimap.This package contains interfaces for
PartitionBag.This package contains implementations for Eclipse Collections API.
This package contains implementations of the
ImmutableBag interface.This package contains implementations of the
MutableBag interface.This package contains implementations of
MutableSortedBag.This package contains implementations of bags with user defined
HashingStrategys.This package contains implementations of the
Multimap interface.This package contains
SerializeTestHelper and Verify classes.-
Uses of Bag in org.eclipse.collections.api
Methods in org.eclipse.collections.api that return BagModifier and TypeMethodDescriptiondefault <V> Bag<V> This method will count the number of occurrences of each value calculated by applying the function to each element of the collection.default <V> Bag<V> RichIterable.countByEach(Function<? super T, ? extends Iterable<V>> function) This method will count the number of occurrences of each value calculated by applying the function to each element of the collection.default <V,P> Bag <V> RichIterable.countByWith(Function2<? super T, ? super P, ? extends V> function, P parameter) This method will count the number of occurrences of each value calculated by applying the function to each element of the collection with the specified parameter as the second argument. -
Uses of Bag in org.eclipse.collections.api.bag
Subinterfaces of Bag in org.eclipse.collections.api.bagModifier and TypeInterfaceDescriptioninterfaceImmutableBag<T>interfaceinterfaceA MultiReaderBag provides thread-safe iteration for a bag through methodswithReadLockAndDelegate()andwithWriteLockAndDelegate().interfaceMutableBag<T>A MutableBag is a Collection whose elements are unordered and may contain duplicate entries.interfaceinterfaceUnsortedBag<T>Methods in org.eclipse.collections.api.bag that return BagModifier and TypeMethodDescriptionBag.rejectWith(Predicate2<? super T, ? super P> predicate, P parameter) Bag.selectByOccurrences(IntPredicate predicate) Returns all elements of the bag that have a number of occurrences that satisfy the predicate.Bag.selectDuplicates()Returns all elements of the bag that have more than one occurrence.<S> Bag<S> Bag.selectInstancesOf(Class<S> clazz) Bag.selectWith(Predicate2<? super T, ? super P> predicate, P parameter) -
Uses of Bag in org.eclipse.collections.api.bag.primitive
Methods in org.eclipse.collections.api.bag.primitive that return BagModifier and TypeMethodDescription<V> Bag<V> BooleanBag.collect(BooleanToObjectFunction<? extends V> function) <V> Bag<V> ByteBag.collect(ByteToObjectFunction<? extends V> function) <V> Bag<V> CharBag.collect(CharToObjectFunction<? extends V> function) <V> Bag<V> DoubleBag.collect(DoubleToObjectFunction<? extends V> function) <V> Bag<V> FloatBag.collect(FloatToObjectFunction<? extends V> function) <V> Bag<V> IntBag.collect(IntToObjectFunction<? extends V> function) <V> Bag<V> LongBag.collect(LongToObjectFunction<? extends V> function) <V> Bag<V> ShortBag.collect(ShortToObjectFunction<? extends V> function) -
Uses of Bag in org.eclipse.collections.api.bag.sorted
Subinterfaces of Bag in org.eclipse.collections.api.bag.sortedModifier and TypeInterfaceDescriptioninterfaceImmutableSortedBag is the non-modifiable equivalent interface toMutableSortedBag.interfaceinterfaceSortedBag<T>An Iterable whose elements are sorted by some comparator or their natural ordering and may contain duplicate entries. -
Uses of Bag in org.eclipse.collections.api.map
Methods in org.eclipse.collections.api.map that return BagModifier and TypeMethodDescription<V1> Bag<V1> <V1> Bag<V1> UnsortedMapIterable.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends V1> function) <P,V1> Bag <V1> UnsortedMapIterable.collectWith(Function2<? super V, ? super P, ? extends V1> function, P parameter) <V1> Bag<V1> UnsortedMapIterable.flatCollect(Function<? super V, ? extends Iterable<V1>> function) default <P,V1> Bag <V1> UnsortedMapIterable.flatCollectWith(Function2<? super V, ? super P, ? extends Iterable<V1>> function, P parameter) UnsortedMapIterable.rejectWith(Predicate2<? super V, ? super P> predicate, P parameter) <S> Bag<S> UnsortedMapIterable.selectInstancesOf(Class<S> clazz) UnsortedMapIterable.selectWith(Predicate2<? super V, ? super P> predicate, P parameter) Deprecated.in 6.0. -
Uses of Bag in org.eclipse.collections.api.map.primitive
Methods in org.eclipse.collections.api.map.primitive that return BagModifier and TypeMethodDescription<V> Bag<V> BooleanValuesMap.collect(BooleanToObjectFunction<? extends V> function) <V> Bag<V> ByteValuesMap.collect(ByteToObjectFunction<? extends V> function) <V> Bag<V> CharValuesMap.collect(CharToObjectFunction<? extends V> function) <V> Bag<V> DoubleValuesMap.collect(DoubleToObjectFunction<? extends V> function) <V> Bag<V> FloatValuesMap.collect(FloatToObjectFunction<? extends V> function) <V> Bag<V> IntValuesMap.collect(IntToObjectFunction<? extends V> function) <V> Bag<V> LongValuesMap.collect(LongToObjectFunction<? extends V> function) <VV> Bag<VV> <V> Bag<V> ShortValuesMap.collect(ShortToObjectFunction<? extends V> function) <VV> Bag<VV> PrimitiveObjectMap.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends VV> function) <P,VV> Bag <VV> PrimitiveObjectMap.collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter) <VV> Bag<VV> PrimitiveObjectMap.flatCollect(Function<? super V, ? extends Iterable<VV>> function) default <P,VV> Bag <VV> PrimitiveObjectMap.flatCollectWith(Function2<? super V, ? super P, ? extends Iterable<VV>> function, P parameter) PrimitiveObjectMap.rejectWith(Predicate2<? super V, ? super P> predicate, P parameter) <S> Bag<S> PrimitiveObjectMap.selectInstancesOf(Class<S> clazz) PrimitiveObjectMap.selectWith(Predicate2<? super V, ? super P> predicate, P parameter) Deprecated.in 6.0. -
Uses of Bag in org.eclipse.collections.api.multimap
Methods in org.eclipse.collections.api.multimap that return Bag -
Uses of Bag in org.eclipse.collections.api.multimap.bag
Methods in org.eclipse.collections.api.multimap.bag that return Bag -
Uses of Bag in org.eclipse.collections.api.partition.bag
Methods in org.eclipse.collections.api.partition.bag that return Bag -
Uses of Bag in org.eclipse.collections.impl
Methods in org.eclipse.collections.impl that return BagModifier and TypeMethodDescription<V> Bag<V> AbstractRichIterable.countByEach(Function<? super T, ? extends Iterable<V>> function) -
Uses of Bag in org.eclipse.collections.impl.bag
Classes in org.eclipse.collections.impl.bag that implement Bag -
Uses of Bag in org.eclipse.collections.impl.bag.immutable
Classes in org.eclipse.collections.impl.bag.immutable that implement BagModifier and TypeClassDescriptionclassclassclass(package private) final classThis is a zero elementImmutableBagwhich is created by calling the Bags.immutable.empty().class(package private) final classMethods in org.eclipse.collections.impl.bag.immutable with parameters of type BagModifier and TypeMethodDescriptionstatic <T> ImmutableArrayBag<T> static <T> ImmutableHashBag<T> ImmutableHashBag.newBagWith(Bag<? extends T> bag) Constructors in org.eclipse.collections.impl.bag.immutable with parameters of type Bag -
Uses of Bag in org.eclipse.collections.impl.bag.mutable
Classes in org.eclipse.collections.impl.bag.mutable that implement BagModifier and TypeClassDescriptionclassclassclassclassHashBag<T>A HashBag is a MutableBag which uses a Map as its underlying data store.final classMultiReaderHashBag provides a thread-safe wrapper around a HashBag, using a ReentrantReadWriteLock.(package private) static final classclassA synchronized view of aMutableBag.classAn unmodifiable view of a bag.Methods in org.eclipse.collections.impl.bag.mutable with parameters of type Bag -
Uses of Bag in org.eclipse.collections.impl.bag.sorted.immutable
Classes in org.eclipse.collections.impl.bag.sorted.immutable that implement BagModifier and TypeClassDescription(package private) class(package private) class(package private) class -
Uses of Bag in org.eclipse.collections.impl.bag.sorted.mutable
Classes in org.eclipse.collections.impl.bag.sorted.mutable that implement BagModifier and TypeClassDescriptionclassclassA synchronized view of aMutableSortedBag.classTreeBag<T>A TreeBag is a MutableSortedBag which uses a SortedMap as its underlying data store.classAn unmodifiable view of a SortedBag. -
Uses of Bag in org.eclipse.collections.impl.bag.strategy.mutable
Classes in org.eclipse.collections.impl.bag.strategy.mutable that implement BagMethods in org.eclipse.collections.impl.bag.strategy.mutable with parameters of type BagModifier and TypeMethodDescriptionstatic <E> HashBagWithHashingStrategy<E> HashBagWithHashingStrategy.newBag(HashingStrategy<? super E> hashingStrategy, Bag<? extends E> source) -
Uses of Bag in org.eclipse.collections.impl.collection
Methods in org.eclipse.collections.impl.collection that return BagModifier and TypeMethodDescription<V> Bag<V> <V> Bag<V> AbstractSynchronizedRichIterable.countByEach(Function<? super T, ? extends Iterable<V>> function) <V,P> Bag <V> AbstractSynchronizedRichIterable.countByWith(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Bag in org.eclipse.collections.impl.multimap
Methods in org.eclipse.collections.impl.multimap that return Bag -
Uses of Bag in org.eclipse.collections.impl.test
Methods in org.eclipse.collections.impl.test with parameters of type BagModifier and TypeMethodDescriptionstatic voidVerify.assertBagsEqual(String bagName, Bag<?> expectedBag, Bag<?> actualBag) static voidVerify.assertBagsEqual(Bag<?> expectedBag, Bag<?> actualBag)