Serializable
, Comparable<ImmutableHashingStrategySetFactoryImpl>
, ImmutableHashingStrategySetFactory
public enum ImmutableHashingStrategySetFactoryImpl extends Enum<ImmutableHashingStrategySetFactoryImpl> implements ImmutableHashingStrategySetFactory
Enum Constant | Description |
---|---|
INSTANCE |
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) |
public static final ImmutableHashingStrategySetFactoryImpl INSTANCE
public static ImmutableHashingStrategySetFactoryImpl[] values()
for (ImmutableHashingStrategySetFactoryImpl c : ImmutableHashingStrategySetFactoryImpl.values()) System.out.println(c);
public static ImmutableHashingStrategySetFactoryImpl valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <T> ImmutableSet<T> of(HashingStrategy<? super T> hashingStrategy)
ImmutableHashingStrategySetFactory
of
in interface ImmutableHashingStrategySetFactory
public <T> ImmutableSet<T> with(HashingStrategy<? super T> hashingStrategy)
with
in interface ImmutableHashingStrategySetFactory
public <T> ImmutableSet<T> of(HashingStrategy<? super T> hashingStrategy, T... items)
ImmutableHashingStrategySetFactory
of
in interface ImmutableHashingStrategySetFactory
public <T> ImmutableSet<T> with(HashingStrategy<? super T> hashingStrategy, T... items)
with
in interface ImmutableHashingStrategySetFactory
public <T> ImmutableSet<T> ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)
ImmutableHashingStrategySetFactory
ofAll
in interface ImmutableHashingStrategySetFactory
public <T> ImmutableSet<T> withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)
withAll
in interface ImmutableHashingStrategySetFactory
public <T> ImmutableSet<T> ofInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity)
ImmutableHashingStrategySetFactory
ImmutableHashingStrategySetFactory.withInitialCapacity(HashingStrategy, int)
. of initial capacity.ofInitialCapacity
in interface ImmutableHashingStrategySetFactory
public <T> ImmutableSet<T> withInitialCapacity(HashingStrategy<? super T> hashingStrategy, int capacity)
withInitialCapacity
in interface ImmutableHashingStrategySetFactory
Copyright © 2004–2019. All rights reserved.