Enum ImmutableHashingStrategySetFactoryImpl
- java.lang.Object
-
- java.lang.Enum<ImmutableHashingStrategySetFactoryImpl>
-
- org.eclipse.collections.impl.set.strategy.immutable.ImmutableHashingStrategySetFactoryImpl
-
- All Implemented Interfaces:
Serializable
,Comparable<ImmutableHashingStrategySetFactoryImpl>
,ImmutableHashingStrategySetFactory
public enum ImmutableHashingStrategySetFactoryImpl extends Enum<ImmutableHashingStrategySetFactoryImpl> implements ImmutableHashingStrategySetFactory
-
-
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> 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)
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ImmutableHashingStrategySetFactoryImpl INSTANCE
-
-
Method Detail
-
values
public static ImmutableHashingStrategySetFactoryImpl[] 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 (ImmutableHashingStrategySetFactoryImpl c : ImmutableHashingStrategySetFactoryImpl.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImmutableHashingStrategySetFactoryImpl 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> ImmutableSet<T> of(HashingStrategy<? super T> hashingStrategy)
- Specified by:
of
in interfaceImmutableHashingStrategySetFactory
-
with
public <T> ImmutableSet<T> with(HashingStrategy<? super T> hashingStrategy)
- Specified by:
with
in interfaceImmutableHashingStrategySetFactory
-
of
public <T> ImmutableSet<T> of(HashingStrategy<? super T> hashingStrategy, T... items)
- Specified by:
of
in interfaceImmutableHashingStrategySetFactory
-
with
public <T> ImmutableSet<T> with(HashingStrategy<? super T> hashingStrategy, T... items)
- Specified by:
with
in interfaceImmutableHashingStrategySetFactory
-
ofAll
public <T> ImmutableSet<T> ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)
- 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)
- Specified by:
ofInitialCapacity
in interfaceImmutableHashingStrategySetFactory
-
withInitialCapacity
public <T> ImmutableSet<T> withInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity)
- Specified by:
withInitialCapacity
in interfaceImmutableHashingStrategySetFactory
-
-