Enum Class ImmutableHashingStrategySetFactoryImpl
java.lang.Object
java.lang.Enum<ImmutableHashingStrategySetFactoryImpl>
org.eclipse.collections.impl.set.strategy.immutable.ImmutableHashingStrategySetFactoryImpl
- All Implemented Interfaces:
Serializable,Comparable<ImmutableHashingStrategySetFactoryImpl>,Constable,ImmutableHashingStrategySetFactory
public enum ImmutableHashingStrategySetFactoryImpl
extends Enum<ImmutableHashingStrategySetFactoryImpl>
implements ImmutableHashingStrategySetFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<T> ImmutableSet<T>of(HashingStrategy<? super T> hashingStrategy) <T> ImmutableSet<T>of(HashingStrategy<? super T> hashingStrategy, T... items) <T> ImmutableSet<T>ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items) <T> ImmutableSet<T>ofInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity) Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.<T> ImmutableSet<T>with(HashingStrategy<? super T> hashingStrategy) <T> ImmutableSet<T>with(HashingStrategy<? super T> hashingStrategy, T... items) <T> ImmutableSet<T>withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items) <T> ImmutableSet<T>withInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity) 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
of
- Specified by:
ofin interfaceImmutableHashingStrategySetFactory
-
with
- Specified by:
within interfaceImmutableHashingStrategySetFactory
-
of
- Specified by:
ofin interfaceImmutableHashingStrategySetFactory
-
with
- Specified by:
within interfaceImmutableHashingStrategySetFactory
-
ofAll
public <T> ImmutableSet<T> ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items) - Specified by:
ofAllin interfaceImmutableHashingStrategySetFactory
-
withAll
public <T> ImmutableSet<T> withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items) - Specified by:
withAllin interfaceImmutableHashingStrategySetFactory
-
ofInitialCapacity
public <T> ImmutableSet<T> ofInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity) - Specified by:
ofInitialCapacityin interfaceImmutableHashingStrategySetFactory
-
withInitialCapacity
public <T> ImmutableSet<T> withInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity) - Specified by:
withInitialCapacityin interfaceImmutableHashingStrategySetFactory
-