Top Methods
org.eclipse.collections.api.factory.bag.strategy

public Interface MutableHashingStrategyBagFactory

Imports
org.eclipse.collections.api.bag.MutableBag, org.eclipse.collections.api.block.HashingStrategy, org.eclipse.collections.api.block.function.Function

Method Summary

Modifier and TypeMethod and Description
public <T> MutableBag<T>
empty(HashingStrategy<? super T> hashingStrategy)

public default <T, V> MutableBag<T>
fromFunction(Function<? super T, ? extends V> function)

Since 11.1

public <T> MutableBag<T>
of(HashingStrategy<? super T> hashingStrategy)

Same as with(HashingStrategy).

public <T> MutableBag<T>
of(HashingStrategy<? super T> hashingStrategy, T... items)

Same as with(HashingStrategy, Object[]).

public <T> MutableBag<T>
ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)

Same as withAll(HashingStrategy, Iterable).

public <T> MutableBag<T>
with(HashingStrategy<? super T> hashingStrategy)

public <T> MutableBag<T>
with(HashingStrategy<? super T> hashingStrategy, T... items)

public <T> MutableBag<T>
withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)

Method Detail

emptyback to summary
public <T> MutableBag<T> empty(HashingStrategy<? super T> hashingStrategy)
fromFunctionback to summary
public default <T, V> MutableBag<T> fromFunction(Function<? super T, ? extends V> function)

Since 11.1

ofback to summary
public <T> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy)

Same as with(HashingStrategy).

ofback to summary
public <T> MutableBag<T> of(HashingStrategy<? super T> hashingStrategy, T... items)

Same as with(HashingStrategy, Object[]).

ofAllback to summary
public <T> MutableBag<T> ofAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)

Same as withAll(HashingStrategy, Iterable).

withback to summary
public <T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy)
withback to summary
public <T> MutableBag<T> with(HashingStrategy<? super T> hashingStrategy, T... items)
withAllback to summary
public <T> MutableBag<T> withAll(HashingStrategy<? super T> hashingStrategy, Iterable<? extends T> items)