MutableHashingStrategyBagFactory
public enum MutableHashingStrategyBagFactoryImpl extends java.lang.Enum<MutableHashingStrategyBagFactoryImpl> implements MutableHashingStrategyBagFactory
Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<T> MutableBag<T> |
empty(HashingStrategy<? super T> hashingStrategy) |
|
<T> MutableBag<T> |
of(HashingStrategy<? super T> hashingStrategy) |
|
<T> MutableBag<T> |
of(HashingStrategy<? super T> hashingStrategy,
T... items) |
|
<T> MutableBag<T> |
ofAll(HashingStrategy<? super T> hashingStrategy,
java.lang.Iterable<? extends T> items) |
|
static MutableHashingStrategyBagFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MutableHashingStrategyBagFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> MutableBag<T> |
with(HashingStrategy<? super T> hashingStrategy) |
|
<T> MutableBag<T> |
with(HashingStrategy<? super T> hashingStrategy,
T... items) |
|
<T> MutableBag<T> |
withAll(HashingStrategy<? super T> hashingStrategy,
java.lang.Iterable<? extends T> items) |
public static final MutableHashingStrategyBagFactoryImpl INSTANCE
public static MutableHashingStrategyBagFactoryImpl[] values()
for (MutableHashingStrategyBagFactoryImpl c : MutableHashingStrategyBagFactoryImpl.values()) System.out.println(c);
public static MutableHashingStrategyBagFactoryImpl 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> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy)
MutableHashingStrategyBagFactory
of
in interface MutableHashingStrategyBagFactory
public <T> MutableBag<T> empty(HashingStrategy<? super T> hashingStrategy)
empty
in interface MutableHashingStrategyBagFactory
public <T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy)
with
in interface MutableHashingStrategyBagFactory
public <T> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy, T... items)
MutableHashingStrategyBagFactory
of
in interface MutableHashingStrategyBagFactory
public <T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy, T... items)
with
in interface MutableHashingStrategyBagFactory
public <T> MutableBag<T> ofAll(HashingStrategy<? super T> hashingStrategy, java.lang.Iterable<? extends T> items)
MutableHashingStrategyBagFactory
ofAll
in interface MutableHashingStrategyBagFactory
public <T> MutableBag<T> withAll(HashingStrategy<? super T> hashingStrategy, java.lang.Iterable<? extends T> items)
withAll
in interface MutableHashingStrategyBagFactory
Copyright © 2004–2018. All rights reserved.