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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
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) Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INSTANCE
-
-
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:
of
in interfaceMutableHashingStrategyBagFactory
-
empty
- Specified by:
empty
in interfaceMutableHashingStrategyBagFactory
-
with
- Specified by:
with
in interfaceMutableHashingStrategyBagFactory
-
fromFunction
Description copied from interface:MutableHashingStrategyBagFactory
Since 11.1- Specified by:
fromFunction
in interfaceMutableHashingStrategyBagFactory
-
of
Description copied from interface:MutableHashingStrategyBagFactory
- Specified by:
of
in interfaceMutableHashingStrategyBagFactory
-
with
- Specified by:
with
in interfaceMutableHashingStrategyBagFactory
-
ofAll
public <T> MutableBag<T> ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items) Description copied from interface:MutableHashingStrategyBagFactory
- Specified by:
ofAll
in interfaceMutableHashingStrategyBagFactory
-
withAll
public <T> MutableBag<T> withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items) - Specified by:
withAll
in interfaceMutableHashingStrategyBagFactory
-