Enum ImmutableHashingStrategySetFactoryImpl
java.lang.Object
java.lang.Enum<ImmutableHashingStrategySetFactoryImpl>
org.eclipse.collections.impl.set.strategy.immutable.ImmutableHashingStrategySetFactoryImpl
- All Implemented Interfaces:
Serializable
,Comparable<ImmutableHashingStrategySetFactoryImpl>
,java.lang.constant.Constable
,ImmutableHashingStrategySetFactory
public enum ImmutableHashingStrategySetFactoryImpl extends Enum<ImmutableHashingStrategySetFactoryImpl> implements ImmutableHashingStrategySetFactory
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
Modifier and Type Method Description <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)
static ImmutableHashingStrategySetFactoryImpl
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImmutableHashingStrategySetFactoryImpl[]
values()
Returns an array containing the constants of this enum type, 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
-
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:ImmutableHashingStrategySetFactory
- Specified by:
of
in interfaceImmutableHashingStrategySetFactory
-
with
- Specified by:
with
in interfaceImmutableHashingStrategySetFactory
-
of
Description copied from interface:ImmutableHashingStrategySetFactory
- Specified by:
of
in interfaceImmutableHashingStrategySetFactory
-
with
- Specified by:
with
in interfaceImmutableHashingStrategySetFactory
-
ofAll
public <T> ImmutableSet<T> ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)Description copied from interface:ImmutableHashingStrategySetFactory
- Specified by:
ofAll
in interfaceImmutableHashingStrategySetFactory
-
withAll
public <T> ImmutableSet<T> withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)- Specified by:
withAll
in interfaceImmutableHashingStrategySetFactory
-
ofInitialCapacity
public <T> ImmutableSet<T> ofInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity)Description copied from interface:ImmutableHashingStrategySetFactory
Same asImmutableHashingStrategySetFactory.withInitialCapacity(HashingStrategy, int)
. of initial capacity.- Specified by:
ofInitialCapacity
in interfaceImmutableHashingStrategySetFactory
-
withInitialCapacity
public <T> ImmutableSet<T> withInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity)- Specified by:
withInitialCapacity
in interfaceImmutableHashingStrategySetFactory
-