Enum MutableHashingStrategyBagFactoryImpl
java.lang.Object
java.lang.Enum<MutableHashingStrategyBagFactoryImpl>
org.eclipse.collections.impl.bag.strategy.mutable.MutableHashingStrategyBagFactoryImpl
- All Implemented Interfaces:
Serializable, Comparable<MutableHashingStrategyBagFactoryImpl>, java.lang.constant.Constable, MutableHashingStrategyBagFactory
public enum MutableHashingStrategyBagFactoryImpl
extends Enum<MutableHashingStrategyBagFactoryImpl>
implements MutableHashingStrategyBagFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MutableBag<T> empty(HashingStrategy<? super T> hashingStrategy) <T,V> MutableBag <T> fromFunction(Function<? super T, ? extends V> function) Since 11.1<T> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy) <T> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy, T... items) <T> MutableBag<T> ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items) Returns the enum constant of this type with the specified name.static MutableHashingStrategyBagFactoryImpl[]values()Returns an array containing the constants of this enum type, in the order they are declared.<T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy) <T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy, T... items) <T> MutableBag<T> withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)
-
Enum Constant Details
-
INSTANCE
-
-
Constructor Details
-
MutableHashingStrategyBagFactoryImpl
private MutableHashingStrategyBagFactoryImpl()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
of
Description copied from interface:MutableHashingStrategyBagFactory- Specified by:
ofin interfaceMutableHashingStrategyBagFactory
-
empty
- Specified by:
emptyin interfaceMutableHashingStrategyBagFactory
-
with
- Specified by:
within interfaceMutableHashingStrategyBagFactory
-
fromFunction
Description copied from interface:MutableHashingStrategyBagFactorySince 11.1- Specified by:
fromFunctionin interfaceMutableHashingStrategyBagFactory
-
of
Description copied from interface:MutableHashingStrategyBagFactory- Specified by:
ofin interfaceMutableHashingStrategyBagFactory
-
with
- Specified by:
within interfaceMutableHashingStrategyBagFactory
-
ofAll
public <T> MutableBag<T> ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items) Description copied from interface:MutableHashingStrategyBagFactory- Specified by:
ofAllin interfaceMutableHashingStrategyBagFactory
-
withAll
public <T> MutableBag<T> withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items) - Specified by:
withAllin interfaceMutableHashingStrategyBagFactory
-