Enum MutableHashingStrategyBagFactoryImpl
- java.lang.Object
-
- java.lang.Enum<MutableHashingStrategyBagFactoryImpl>
-
- org.eclipse.collections.impl.bag.strategy.mutable.MutableHashingStrategyBagFactoryImpl
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MutableHashingStrategyBagFactoryImpl>
,MutableHashingStrategyBagFactory
public enum MutableHashingStrategyBagFactoryImpl extends java.lang.Enum<MutableHashingStrategyBagFactoryImpl> implements MutableHashingStrategyBagFactory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
MutableHashingStrategyBagFactoryImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <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, java.lang.Iterable<? extends T> items)
static MutableHashingStrategyBagFactoryImpl
valueOf(java.lang.String name)
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, java.lang.Iterable<? extends T> items)
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MutableHashingStrategyBagFactoryImpl INSTANCE
-
-
Method Detail
-
values
public static MutableHashingStrategyBagFactoryImpl[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MutableHashingStrategyBagFactoryImpl c : MutableHashingStrategyBagFactoryImpl.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MutableHashingStrategyBagFactoryImpl valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
of
public <T> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy)
Description copied from interface:MutableHashingStrategyBagFactory
- Specified by:
of
in interfaceMutableHashingStrategyBagFactory
-
empty
public <T> MutableBag<T> empty(HashingStrategy<? super T> hashingStrategy)
- Specified by:
empty
in interfaceMutableHashingStrategyBagFactory
-
with
public <T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy)
- Specified by:
with
in interfaceMutableHashingStrategyBagFactory
-
fromFunction
public <T,V> MutableBag<T> fromFunction(Function<? super T,? extends V> function)
Description copied from interface:MutableHashingStrategyBagFactory
Since 11.1- Specified by:
fromFunction
in interfaceMutableHashingStrategyBagFactory
-
of
public <T> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy, T... items)
Description copied from interface:MutableHashingStrategyBagFactory
- Specified by:
of
in interfaceMutableHashingStrategyBagFactory
-
with
public <T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy, T... items)
- Specified by:
with
in interfaceMutableHashingStrategyBagFactory
-
ofAll
public <T> MutableBag<T> ofAll(HashingStrategy<? super T> hashingStrategy, java.lang.Iterable<? extends T> items)
Description copied from interface:MutableHashingStrategyBagFactory
- Specified by:
ofAll
in interfaceMutableHashingStrategyBagFactory
-
withAll
public <T> MutableBag<T> withAll(HashingStrategy<? super T> hashingStrategy, java.lang.Iterable<? extends T> items)
- Specified by:
withAll
in interfaceMutableHashingStrategyBagFactory
-
-