@NotThreadSafe public class UnifiedSetWithHashingStrategy<T> extends AbstractUnifiedSet<T> implements Externalizable
| Constructor and Description |
|---|
UnifiedSetWithHashingStrategy()
Deprecated.
No argument default constructor used for serialization. Instantiating an UnifiedSetWithHashingStrategyMultimap with
this constructor will have a null hashingStrategy and throw NullPointerException when used.
|
UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy) |
UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy,
Collection<? extends T> collection) |
UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy,
int initialCapacity) |
UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy,
int initialCapacity,
float loadFactor) |
UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy,
UnifiedSetWithHashingStrategy<T> set) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T key) |
boolean |
addAllIterable(Iterable<? extends T> iterable) |
com.gs.collections.api.set.ParallelUnsortedSetIterable<T> |
asParallel(ExecutorService executorService,
int batchSize) |
void |
batchForEach(com.gs.collections.api.block.procedure.Procedure<? super T> procedure,
int sectionIndex,
int sectionCount) |
void |
clear() |
UnifiedSetWithHashingStrategy<T> |
clone() |
boolean |
contains(Object key) |
void |
each(com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
boolean |
equals(Object object) |
<P> void |
forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter) |
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
T |
get(T key) |
T |
getFirst() |
T |
getLast() |
<V> UnifiedSetWithHashingStrategyMultimap<V,T> |
groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<V> UnifiedSetMultimap<V,T> |
groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
int |
hashCode() |
com.gs.collections.api.block.HashingStrategy<? super T> |
hashingStrategy() |
Iterator<T> |
iterator() |
<V> com.gs.collections.api.LazyIterable<V> |
lazyCollect(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
Deprecated.
since 3.0. Use
AbstractRichIterable.asLazy().AbstractUnifiedSet.collect(Function) instead. |
com.gs.collections.api.LazyIterable<T> |
lazyReject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
Deprecated.
since 3.0. Use
AbstractRichIterable.asLazy().reject(Predicate) instead. |
com.gs.collections.api.LazyIterable<T> |
lazySelect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
Deprecated.
since 3.0. Use
AbstractRichIterable.asLazy().select(Predicate) instead. |
UnifiedSetWithHashingStrategy<T> |
newEmpty() |
static <K> UnifiedSetWithHashingStrategy<K> |
newSet(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy) |
static <K> UnifiedSetWithHashingStrategy<K> |
newSet(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy,
int size) |
static <K> UnifiedSetWithHashingStrategy<K> |
newSet(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy,
int size,
float loadFactor) |
static <K> UnifiedSetWithHashingStrategy<K> |
newSet(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy,
Iterable<? extends K> source) |
static <K> UnifiedSetWithHashingStrategy<K> |
newSet(UnifiedSetWithHashingStrategy<K> set) |
static <K> UnifiedSetWithHashingStrategy<K> |
newSetWith(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K... elements) |
com.gs.collections.api.partition.set.PartitionMutableSet<T> |
partition(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> com.gs.collections.api.partition.set.PartitionMutableSet<T> |
partitionWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
T |
put(T key) |
void |
readExternal(ObjectInput in) |
UnifiedSetWithHashingStrategy<T> |
reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> UnifiedSetWithHashingStrategy<T> |
rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
remove(Object key) |
T |
removeFromPool(T key) |
boolean |
retainAllIterable(Iterable<?> iterable) |
UnifiedSetWithHashingStrategy<T> |
select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> com.gs.collections.api.tuple.Twin<com.gs.collections.api.list.MutableList<T>> |
selectAndRejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
<S> UnifiedSetWithHashingStrategy<S> |
selectInstancesOf(Class<S> clazz) |
<P> UnifiedSetWithHashingStrategy<T> |
selectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
int |
size() |
UnifiedSetWithHashingStrategy<T> |
tap(com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
com.gs.collections.api.set.ImmutableSet<T> |
toImmutable() |
UnifiedSetWithHashingStrategy<T> |
with(T... elements) |
UnifiedSetWithHashingStrategy<T> |
with(T element) |
UnifiedSetWithHashingStrategy<T> |
with(T element1,
T element2) |
UnifiedSetWithHashingStrategy<T> |
with(T element1,
T element2,
T element3) |
UnifiedSetWithHashingStrategy<T> |
withAll(Iterable<? extends T> iterable) |
UnifiedSetWithHashingStrategy<T> |
without(T element) |
UnifiedSetWithHashingStrategy<T> |
withoutAll(Iterable<? extends T> elements) |
void |
writeExternal(ObjectOutput out) |
addAll, aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, asSynchronized, asUnmodifiable, cartesianProduct, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, detect, difference, differenceInto, flatCollect, getBatchCount, groupByUniqueKey, injectIntoWith, intersect, intersectInto, isProperSubsetOf, isSubsetOf, noneSatisfy, noneSatisfyWith, powerSet, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, symmetricDifference, symmetricDifferenceInto, union, unionInto, zip, zipWithIndexappendString, appendString, appendString, asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, detectIfNone, detectWith, detectWithIfNone, flatCollect, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, notEmpty, reject, rejectWith, select, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexappendString, appendString, appendString, asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, detectIfNone, detectWith, detectWithIfNone, flatCollect, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, notEmpty, reject, rejectWith, select, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexcontainsAll, isEmpty, spliteratorparallelStream, removeIf, streamforEach@Deprecated public UnifiedSetWithHashingStrategy()
public UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy)
public UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy, int initialCapacity)
public UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy, int initialCapacity, float loadFactor)
public UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy, Collection<? extends T> collection)
public UnifiedSetWithHashingStrategy(com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy, UnifiedSetWithHashingStrategy<T> set)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(UnifiedSetWithHashingStrategy<K> set)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy, int size)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy, Iterable<? extends K> source)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy, int size, float loadFactor)
public static <K> UnifiedSetWithHashingStrategy<K> newSetWith(com.gs.collections.api.block.HashingStrategy<? super K> hashingStrategy, K... elements)
public com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy()
public void clear()
public boolean add(T key)
public boolean contains(Object key)
contains in interface com.gs.collections.api.RichIterable<T>contains in interface Collection<T>contains in interface Set<T>contains in class AbstractRichIterable<T>public void batchForEach(com.gs.collections.api.block.procedure.Procedure<? super T> procedure, int sectionIndex, int sectionCount)
batchForEach in interface BatchIterable<T>public UnifiedSetWithHashingStrategy<T> tap(com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
tap in interface com.gs.collections.api.collection.MutableCollection<T>tap in interface com.gs.collections.api.RichIterable<T>tap in interface com.gs.collections.api.set.MutableSet<T>tap in interface com.gs.collections.api.set.MutableSetIterable<T>public void each(com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
each in interface com.gs.collections.api.RichIterable<T>public <P> void forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface com.gs.collections.api.InternalIterable<T>forEachWith in class AbstractRichIterable<T>public void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface com.gs.collections.api.InternalIterable<T>forEachWithIndex in class AbstractRichIterable<T>public UnifiedSetWithHashingStrategy<T> newEmpty()
public T getFirst()
getFirst in interface com.gs.collections.api.RichIterable<T>public T getLast()
getLast in interface com.gs.collections.api.RichIterable<T>public UnifiedSetWithHashingStrategy<T> select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
select in interface com.gs.collections.api.collection.MutableCollection<T>select in interface com.gs.collections.api.RichIterable<T>select in interface com.gs.collections.api.set.MutableSet<T>select in interface com.gs.collections.api.set.MutableSetIterable<T>select in interface com.gs.collections.api.set.SetIterable<T>select in interface com.gs.collections.api.set.UnsortedSetIterable<T>public <P> UnifiedSetWithHashingStrategy<T> selectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface com.gs.collections.api.collection.MutableCollection<T>selectWith in interface com.gs.collections.api.RichIterable<T>selectWith in interface com.gs.collections.api.set.MutableSet<T>selectWith in interface com.gs.collections.api.set.MutableSetIterable<T>selectWith in interface com.gs.collections.api.set.SetIterable<T>selectWith in interface com.gs.collections.api.set.UnsortedSetIterable<T>public UnifiedSetWithHashingStrategy<T> reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
reject in interface com.gs.collections.api.collection.MutableCollection<T>reject in interface com.gs.collections.api.RichIterable<T>reject in interface com.gs.collections.api.set.MutableSet<T>reject in interface com.gs.collections.api.set.MutableSetIterable<T>reject in interface com.gs.collections.api.set.SetIterable<T>reject in interface com.gs.collections.api.set.UnsortedSetIterable<T>public <P> UnifiedSetWithHashingStrategy<T> rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface com.gs.collections.api.collection.MutableCollection<T>rejectWith in interface com.gs.collections.api.RichIterable<T>rejectWith in interface com.gs.collections.api.set.MutableSet<T>rejectWith in interface com.gs.collections.api.set.MutableSetIterable<T>rejectWith in interface com.gs.collections.api.set.SetIterable<T>rejectWith in interface com.gs.collections.api.set.UnsortedSetIterable<T>public <P> com.gs.collections.api.tuple.Twin<com.gs.collections.api.list.MutableList<T>> selectAndRejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
selectAndRejectWith in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.partition.set.PartitionMutableSet<T> partition(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
partition in interface com.gs.collections.api.collection.MutableCollection<T>partition in interface com.gs.collections.api.RichIterable<T>partition in interface com.gs.collections.api.set.MutableSet<T>partition in interface com.gs.collections.api.set.MutableSetIterable<T>partition in interface com.gs.collections.api.set.SetIterable<T>public <P> com.gs.collections.api.partition.set.PartitionMutableSet<T> partitionWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface com.gs.collections.api.collection.MutableCollection<T>partitionWith in interface com.gs.collections.api.RichIterable<T>partitionWith in interface com.gs.collections.api.set.MutableSet<T>partitionWith in interface com.gs.collections.api.set.MutableSetIterable<T>partitionWith in interface com.gs.collections.api.set.SetIterable<T>public <S> UnifiedSetWithHashingStrategy<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface com.gs.collections.api.collection.MutableCollection<T>selectInstancesOf in interface com.gs.collections.api.RichIterable<T>selectInstancesOf in interface com.gs.collections.api.set.MutableSet<T>selectInstancesOf in interface com.gs.collections.api.set.MutableSetIterable<T>selectInstancesOf in interface com.gs.collections.api.set.SetIterable<T>selectInstancesOf in interface com.gs.collections.api.set.UnsortedSetIterable<T>@Deprecated public com.gs.collections.api.LazyIterable<T> lazySelect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
AbstractRichIterable.asLazy().select(Predicate) instead.@Deprecated public com.gs.collections.api.LazyIterable<T> lazyReject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
AbstractRichIterable.asLazy().reject(Predicate) instead.@Deprecated public <V> com.gs.collections.api.LazyIterable<V> lazyCollect(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
AbstractRichIterable.asLazy().AbstractUnifiedSet.collect(Function) instead.public com.gs.collections.api.set.ImmutableSet<T> toImmutable()
toImmutable in interface com.gs.collections.api.collection.MutableCollection<T>toImmutable in interface com.gs.collections.api.set.MutableSet<T>toImmutable in interface com.gs.collections.api.set.SetIterable<T>toImmutable in interface com.gs.collections.api.set.UnsortedSetIterable<T>public UnifiedSetWithHashingStrategy<T> with(T element)
public UnifiedSetWithHashingStrategy<T> with(T element1, T element2)
public UnifiedSetWithHashingStrategy<T> with(T element1, T element2, T element3)
public UnifiedSetWithHashingStrategy<T> with(T... elements)
public UnifiedSetWithHashingStrategy<T> withAll(Iterable<? extends T> iterable)
public UnifiedSetWithHashingStrategy<T> without(T element)
public UnifiedSetWithHashingStrategy<T> withoutAll(Iterable<? extends T> elements)
public boolean addAllIterable(Iterable<? extends T> iterable)
addAllIterable in interface com.gs.collections.api.collection.MutableCollection<T>public boolean remove(Object key)
public int size()
public boolean equals(Object object)
public int hashCode()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic boolean retainAllIterable(Iterable<?> iterable)
retainAllIterable in interface com.gs.collections.api.collection.MutableCollection<T>public UnifiedSetWithHashingStrategy<T> clone()
clone in interface com.gs.collections.api.set.MutableSet<T>clone in class AbstractUnifiedSet<T>public Object[] toArray()
toArray in interface com.gs.collections.api.RichIterable<T>toArray in interface Collection<T>toArray in interface Set<T>toArray in class AbstractRichIterable<T>public <T> T[] toArray(T[] array)
toArray in interface com.gs.collections.api.RichIterable<T>toArray in interface Collection<T>toArray in interface Set<T>toArray in class AbstractRichIterable<T>public <V> UnifiedSetWithHashingStrategyMultimap<V,T> groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
groupBy in interface com.gs.collections.api.collection.MutableCollection<T>groupBy in interface com.gs.collections.api.RichIterable<T>groupBy in interface com.gs.collections.api.set.MutableSet<T>groupBy in interface com.gs.collections.api.set.MutableSetIterable<T>groupBy in interface com.gs.collections.api.set.UnsortedSetIterable<T>public <V> UnifiedSetMultimap<V,T> groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
groupByEach in interface com.gs.collections.api.collection.MutableCollection<T>groupByEach in interface com.gs.collections.api.RichIterable<T>groupByEach in interface com.gs.collections.api.set.MutableSet<T>groupByEach in interface com.gs.collections.api.set.MutableSetIterable<T>groupByEach in interface com.gs.collections.api.set.UnsortedSetIterable<T>groupByEach in class AbstractUnifiedSet<T>public T removeFromPool(T key)
removeFromPool in interface com.gs.collections.api.set.Pool<T>public com.gs.collections.api.set.ParallelUnsortedSetIterable<T> asParallel(ExecutorService executorService, int batchSize)
Copyright © 2004–2016. All rights reserved.