Enum MutableHashingStrategySetFactoryImpl
- java.lang.Object
-
- java.lang.Enum<MutableHashingStrategySetFactoryImpl>
-
- org.eclipse.collections.impl.set.strategy.mutable.MutableHashingStrategySetFactoryImpl
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MutableHashingStrategySetFactoryImpl>
,MutableHashingStrategySetFactory
public enum MutableHashingStrategySetFactoryImpl extends java.lang.Enum<MutableHashingStrategySetFactoryImpl> implements MutableHashingStrategySetFactory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
MutableHashingStrategySetFactoryImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,V>
MutableSet<T>fromFunction(Function<? super T,? extends V> function)
Since 11.1<T> MutableSet<T>
of(HashingStrategy<? super T> hashingStrategy)
<T> MutableSet<T>
of(HashingStrategy<? super T> hashingStrategy, T... items)
<T> MutableSet<T>
ofAll(HashingStrategy<? super T> hashingStrategy, java.lang.Iterable<? extends T> items)
<T> MutableSet<T>
ofInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity)
static MutableHashingStrategySetFactoryImpl
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MutableHashingStrategySetFactoryImpl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.<T> MutableSet<T>
with(HashingStrategy<? super T> hashingStrategy)
<T> MutableSet<T>
with(HashingStrategy<? super T> hashingStrategy, T... items)
<T> MutableSet<T>
withAll(HashingStrategy<? super T> hashingStrategy, java.lang.Iterable<? extends T> items)
<T> MutableSet<T>
withInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity)
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MutableHashingStrategySetFactoryImpl INSTANCE
-
-
Method Detail
-
values
public static MutableHashingStrategySetFactoryImpl[] 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 (MutableHashingStrategySetFactoryImpl c : MutableHashingStrategySetFactoryImpl.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MutableHashingStrategySetFactoryImpl 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> MutableSet<T> of(HashingStrategy<? super T> hashingStrategy)
Description copied from interface:MutableHashingStrategySetFactory
- Specified by:
of
in interfaceMutableHashingStrategySetFactory
-
with
public <T> MutableSet<T> with(HashingStrategy<? super T> hashingStrategy)
- Specified by:
with
in interfaceMutableHashingStrategySetFactory
-
fromFunction
public <T,V> MutableSet<T> fromFunction(Function<? super T,? extends V> function)
Description copied from interface:MutableHashingStrategySetFactory
Since 11.1- Specified by:
fromFunction
in interfaceMutableHashingStrategySetFactory
-
of
public <T> MutableSet<T> of(HashingStrategy<? super T> hashingStrategy, T... items)
Description copied from interface:MutableHashingStrategySetFactory
- Specified by:
of
in interfaceMutableHashingStrategySetFactory
-
with
public <T> MutableSet<T> with(HashingStrategy<? super T> hashingStrategy, T... items)
- Specified by:
with
in interfaceMutableHashingStrategySetFactory
-
ofAll
public <T> MutableSet<T> ofAll(HashingStrategy<? super T> hashingStrategy, java.lang.Iterable<? extends T> items)
Description copied from interface:MutableHashingStrategySetFactory
- Specified by:
ofAll
in interfaceMutableHashingStrategySetFactory
-
withAll
public <T> MutableSet<T> withAll(HashingStrategy<? super T> hashingStrategy, java.lang.Iterable<? extends T> items)
- Specified by:
withAll
in interfaceMutableHashingStrategySetFactory
-
ofInitialCapacity
public <T> MutableSet<T> ofInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity)
Description copied from interface:MutableHashingStrategySetFactory
Same asMutableHashingStrategySetFactory.withInitialCapacity(HashingStrategy, int)
. of initial capacity.- Specified by:
ofInitialCapacity
in interfaceMutableHashingStrategySetFactory
-
withInitialCapacity
public <T> MutableSet<T> withInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity)
- Specified by:
withInitialCapacity
in interfaceMutableHashingStrategySetFactory
-
-