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(HashingStrategy<? super T> hashingStrategy) |
UnifiedSetWithHashingStrategy(HashingStrategy<? super T> hashingStrategy,
Collection<? extends T> collection) |
UnifiedSetWithHashingStrategy(HashingStrategy<? super T> hashingStrategy,
int initialCapacity) |
UnifiedSetWithHashingStrategy(HashingStrategy<? super T> hashingStrategy,
int initialCapacity,
float loadFactor) |
UnifiedSetWithHashingStrategy(HashingStrategy<? super T> hashingStrategy,
UnifiedSetWithHashingStrategy<T> set) |
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, asSynchronized, asUnmodifiable, cartesianProduct, chunk, collect, collectIf, collectWith, detect, detectOptional, difference, differenceInto, flatCollect, getBatchCount, groupByUniqueKey, injectIntoWith, intersect, intersectInto, isProperSubsetOf, isSubsetOf, noneSatisfy, noneSatisfyWith, powerSet, removeAllIterable, retainAll, symmetricDifference, symmetricDifferenceInto, union, unionInto, zip, zipWithIndexaddAll, countBy, countByEach, countByWith, reduce, removeAll, removeIf, removeIfWith, sumByDouble, sumByFloat, sumByInt, sumByLongappendString, appendString, asLazy, collect, collectIf, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, detectWith, detectWithIfNone, detectWithOptional, flatCollect, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, max, max, maxBy, min, min, minBy, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexcollectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollectWith, toImmutableSetaggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, removeIf, removeIfWith, sumByDouble, sumByFloat, sumByInt, sumByLongaggregateBy, appendString, appendString, appendString, asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detectIfNone, detectWith, detectWithIfNone, detectWithOptional, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexforEachaddAll, containsAll, isEmpty, removeAll, spliteratorparallelStream, removeIf, streamforEach@Deprecated public UnifiedSetWithHashingStrategy()
public UnifiedSetWithHashingStrategy(HashingStrategy<? super T> hashingStrategy)
public UnifiedSetWithHashingStrategy(HashingStrategy<? super T> hashingStrategy, int initialCapacity)
public UnifiedSetWithHashingStrategy(HashingStrategy<? super T> hashingStrategy, int initialCapacity, float loadFactor)
public UnifiedSetWithHashingStrategy(HashingStrategy<? super T> hashingStrategy, Collection<? extends T> collection)
public UnifiedSetWithHashingStrategy(HashingStrategy<? super T> hashingStrategy, UnifiedSetWithHashingStrategy<T> set)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(HashingStrategy<? super K> hashingStrategy)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(UnifiedSetWithHashingStrategy<K> set)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(HashingStrategy<? super K> hashingStrategy, int size)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(HashingStrategy<? super K> hashingStrategy, Iterable<? extends K> source)
public static <K> UnifiedSetWithHashingStrategy<K> newSet(HashingStrategy<? super K> hashingStrategy, int size, float loadFactor)
public static <K> UnifiedSetWithHashingStrategy<K> newSetWith(HashingStrategy<? super K> hashingStrategy, K... elements)
public HashingStrategy<? super T> hashingStrategy()
public void clear()
public boolean add(T key)
add in interface Collection<T>add in interface Set<T>add in class AbstractMutableCollection<T>public boolean contains(Object key)
contains in interface Collection<T>contains in interface Set<T>contains in interface RichIterable<T>contains in class AbstractRichIterable<T>public void batchForEach(Procedure<? super T> procedure, int sectionIndex, int sectionCount)
batchForEach in interface BatchIterable<T>public UnifiedSetWithHashingStrategy<T> tap(Procedure<? super T> procedure)
tap in interface MutableCollection<T>tap in interface RichIterable<T>tap in interface MutableSet<T>tap in interface MutableSetIterable<T>tap in interface SetIterable<T>tap in interface UnsortedSetIterable<T>public void each(Procedure<? super T> procedure)
each in interface RichIterable<T>public <P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface InternalIterable<T>forEachWith in class AbstractRichIterable<T>public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface InternalIterable<T>forEachWithIndex in class AbstractRichIterable<T>public UnifiedSetWithHashingStrategy<T> newEmpty()
newEmpty in interface MutableCollection<T>newEmpty in interface MutableSet<T>public UnifiedSetWithHashingStrategy<T> newEmpty(int size)
newEmpty in class AbstractUnifiedSet<T>public T getFirst()
getFirst in interface RichIterable<T>public T getLast()
getLast in interface RichIterable<T>public UnifiedSetWithHashingStrategy<T> select(Predicate<? super T> predicate)
select in interface MutableCollection<T>select in interface RichIterable<T>select in interface MutableSet<T>select in interface MutableSetIterable<T>select in interface SetIterable<T>select in interface UnsortedSetIterable<T>public <P> UnifiedSetWithHashingStrategy<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface MutableCollection<T>selectWith in interface RichIterable<T>selectWith in interface MutableSet<T>selectWith in interface MutableSetIterable<T>selectWith in interface SetIterable<T>selectWith in interface UnsortedSetIterable<T>public UnifiedSetWithHashingStrategy<T> reject(Predicate<? super T> predicate)
reject in interface MutableCollection<T>reject in interface RichIterable<T>reject in interface MutableSet<T>reject in interface MutableSetIterable<T>reject in interface SetIterable<T>reject in interface UnsortedSetIterable<T>public <P> UnifiedSetWithHashingStrategy<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface MutableCollection<T>rejectWith in interface RichIterable<T>rejectWith in interface MutableSet<T>rejectWith in interface MutableSetIterable<T>rejectWith in interface SetIterable<T>rejectWith in interface UnsortedSetIterable<T>public <P> Twin<MutableList<T>> selectAndRejectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectAndRejectWith in interface MutableCollection<T>selectAndRejectWith in class AbstractMutableCollection<T>public PartitionMutableSet<T> partition(Predicate<? super T> predicate)
partition in interface MutableCollection<T>partition in interface RichIterable<T>partition in interface MutableSet<T>partition in interface MutableSetIterable<T>partition in interface SetIterable<T>public <P> PartitionMutableSet<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface MutableCollection<T>partitionWith in interface RichIterable<T>partitionWith in interface MutableSet<T>partitionWith in interface MutableSetIterable<T>partitionWith in interface SetIterable<T>public <S> UnifiedSetWithHashingStrategy<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface MutableCollection<T>selectInstancesOf in interface RichIterable<T>selectInstancesOf in interface MutableSet<T>selectInstancesOf in interface MutableSetIterable<T>selectInstancesOf in interface SetIterable<T>selectInstancesOf in interface UnsortedSetIterable<T>@Deprecated public LazyIterable<T> lazySelect(Predicate<? super T> predicate)
AbstractRichIterable.asLazy().select(Predicate) instead.@Deprecated public LazyIterable<T> lazyReject(Predicate<? super T> predicate)
AbstractRichIterable.asLazy().reject(Predicate) instead.@Deprecated public <V> LazyIterable<V> lazyCollect(Function<? super T,? extends V> function)
AbstractRichIterable.asLazy().AbstractUnifiedSet.collect(Function) instead.public ImmutableSet<T> toImmutable()
toImmutable in interface MutableCollection<T>toImmutable in interface MutableSet<T>toImmutable in interface SetIterable<T>toImmutable in interface UnsortedSetIterable<T>public UnifiedSetWithHashingStrategy<T> with(T element)
with in interface MutableCollection<T>with in interface MutableSet<T>with in interface MutableSetIterable<T>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)
withAll in interface MutableCollection<T>withAll in interface MutableSet<T>withAll in interface MutableSetIterable<T>public UnifiedSetWithHashingStrategy<T> without(T element)
without in interface MutableCollection<T>without in interface MutableSet<T>without in interface MutableSetIterable<T>public UnifiedSetWithHashingStrategy<T> withoutAll(Iterable<? extends T> elements)
withoutAll in interface MutableCollection<T>withoutAll in interface MutableSet<T>withoutAll in interface MutableSetIterable<T>public boolean addAllIterable(Iterable<? extends T> iterable)
addAllIterable in interface MutableCollection<T>addAllIterable in class AbstractMutableCollection<T>public boolean remove(Object key)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractMutableCollection<T>public int size()
size in interface Collection<T>size in interface Set<T>size in interface RichIterable<T>size in interface Pool<T>size in interface BatchIterable<T>public boolean equals(Object object)
public int hashCode()
public boolean trimToSize()
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 MutableCollection<T>retainAllIterable in class AbstractMutableCollection<T>public UnifiedSetWithHashingStrategy<T> clone()
clone in interface MutableSet<T>clone in class AbstractUnifiedSet<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface Set<T>toArray in interface RichIterable<T>toArray in class AbstractRichIterable<T>public <T> T[] toArray(T[] array)
toArray in interface Collection<T>toArray in interface Set<T>toArray in interface RichIterable<T>toArray in class AbstractRichIterable<T>public <V> UnifiedSetWithHashingStrategyMultimap<V,T> groupBy(Function<? super T,? extends V> function)
groupBy in interface MutableCollection<T>groupBy in interface RichIterable<T>groupBy in interface MutableSet<T>groupBy in interface MutableSetIterable<T>groupBy in interface UnsortedSetIterable<T>public <V> UnifiedSetWithHashingStrategyMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
groupByEach in interface MutableCollection<T>groupByEach in interface RichIterable<T>groupByEach in interface MutableSet<T>groupByEach in interface MutableSetIterable<T>groupByEach in interface UnsortedSetIterable<T>public T removeFromPool(T key)
removeFromPool in interface Pool<T>public ParallelUnsortedSetIterable<T> asParallel(ExecutorService executorService, int batchSize)
asParallel in interface SetIterable<T>asParallel in interface UnsortedSetIterable<T>Copyright © 2004–2022. All rights reserved.