ImmutableHashingStrategySetFactory
public enum ImmutableHashingStrategySetFactoryImpl extends java.lang.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,
java.lang.Iterable<? extends T> items) |
|
static ImmutableHashingStrategySetFactoryImpl |
valueOf(java.lang.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,
java.lang.Iterable<? extends T> items) |
public static final ImmutableHashingStrategySetFactoryImpl INSTANCE
public static ImmutableHashingStrategySetFactoryImpl[] values()
for (ImmutableHashingStrategySetFactoryImpl c : ImmutableHashingStrategySetFactoryImpl.values()) System.out.println(c);
public static ImmutableHashingStrategySetFactoryImpl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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, java.lang.Iterable<? extends T> items)
ImmutableHashingStrategySetFactory
ofAll
in interface ImmutableHashingStrategySetFactory
public <T> ImmutableSet<T> withAll(HashingStrategy<? super T> hashingStrategy, java.lang.Iterable<? extends T> items)
withAll
in interface ImmutableHashingStrategySetFactory
Copyright © 2004–2017. All rights reserved.