Enum MutableHashingStrategyBagFactoryImpl
- java.lang.Object
-
- java.lang.Enum<MutableHashingStrategyBagFactoryImpl>
-
- org.eclipse.collections.impl.bag.strategy.mutable.MutableHashingStrategyBagFactoryImpl
-
- All Implemented Interfaces:
Serializable,Comparable<MutableHashingStrategyBagFactoryImpl>,MutableHashingStrategyBagFactory
public enum MutableHashingStrategyBagFactoryImpl extends Enum<MutableHashingStrategyBagFactoryImpl> implements MutableHashingStrategyBagFactory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
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)<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)static MutableHashingStrategyBagFactoryImplvalueOf(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, 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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
of
public <T> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy)
- Specified by:
ofin interfaceMutableHashingStrategyBagFactory
-
empty
public <T> MutableBag<T> empty(HashingStrategy<? super T> hashingStrategy)
- Specified by:
emptyin interfaceMutableHashingStrategyBagFactory
-
with
public <T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy)
- Specified by:
within interfaceMutableHashingStrategyBagFactory
-
fromFunction
public <T,V> MutableBag<T> fromFunction(Function<? super T,? extends V> function)
- Specified by:
fromFunctionin interfaceMutableHashingStrategyBagFactory
-
of
public <T> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy, T... items)
- Specified by:
ofin interfaceMutableHashingStrategyBagFactory
-
with
public <T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy, T... items)
- Specified by:
within interfaceMutableHashingStrategyBagFactory
-
ofAll
public <T> MutableBag<T> ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)
- Specified by:
ofAllin interfaceMutableHashingStrategyBagFactory
-
withAll
public <T> MutableBag<T> withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)
- Specified by:
withAllin interfaceMutableHashingStrategyBagFactory
-
-