public class UnifiedSet<T> extends AbstractUnifiedSet<T> implements Externalizable
| Constructor and Description |
|---|
UnifiedSet() |
UnifiedSet(Collection<? extends T> collection) |
UnifiedSet(int initialCapacity) |
UnifiedSet(int initialCapacity,
float loadFactor) |
UnifiedSet(UnifiedSet<T> set) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T key) |
boolean |
addAllIterable(Iterable<? extends T> iterable) |
ParallelUnsortedSetIterable<T> |
asParallel(ExecutorService executorService,
int batchSize) |
void |
batchForEach(Procedure<? super T> procedure,
int sectionIndex,
int sectionCount) |
void |
clear() |
UnifiedSet<T> |
clone() |
boolean |
contains(Object key) |
void |
each(Procedure<? super T> procedure) |
boolean |
equals(Object object) |
<P> void |
forEachWith(Procedure2<? super T,? super P> procedure,
P parameter) |
void |
forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) |
T |
get(T key) |
T |
getFirst() |
T |
getLast() |
<V> UnifiedSetMultimap<V,T> |
groupBy(Function<? super T,? extends V> function) |
<V> UnifiedSetMultimap<V,T> |
groupByEach(Function<? super T,? extends Iterable<V>> function) |
int |
hashCode() |
Iterator<T> |
iterator() |
UnifiedSet<T> |
newEmpty() |
UnifiedSet<T> |
newEmpty(int size) |
static <K> UnifiedSet<K> |
newSet() |
static <K> UnifiedSet<K> |
newSet(int size) |
static <K> UnifiedSet<K> |
newSet(int size,
float loadFactor) |
static <K> UnifiedSet<K> |
newSet(Iterable<? extends K> source) |
static <K> UnifiedSet<K> |
newSetWith(K... elements) |
PartitionMutableSet<T> |
partition(Predicate<? super T> predicate) |
<P> PartitionMutableSet<T> |
partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
T |
put(T key) |
void |
readExternal(ObjectInput in) |
UnifiedSet<T> |
reject(Predicate<? super T> predicate) |
<P> UnifiedSet<T> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
remove(Object key) |
T |
removeFromPool(T key) |
boolean |
retainAllIterable(Iterable<?> iterable) |
UnifiedSet<T> |
select(Predicate<? super T> predicate) |
<P> Twin<MutableList<T>> |
selectAndRejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<S> UnifiedSet<S> |
selectInstancesOf(Class<S> clazz) |
<P> UnifiedSet<T> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
int |
size() |
MutableSet<T> |
tap(Procedure<? super T> procedure) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
ImmutableSet<T> |
toImmutable() |
boolean |
trimToSize() |
UnifiedSet<T> |
with(T... elements) |
UnifiedSet<T> |
with(T element) |
UnifiedSet<T> |
with(T element1,
T element2) |
UnifiedSet<T> |
with(T element1,
T element2,
T element3) |
UnifiedSet<T> |
withAll(Iterable<? extends T> iterable) |
UnifiedSet<T> |
without(T element) |
UnifiedSet<T> |
withoutAll(Iterable<? extends T> elements) |
void |
writeExternal(ObjectOutput out) |
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, streamforEachpublic UnifiedSet()
public UnifiedSet(int initialCapacity)
public UnifiedSet(int initialCapacity,
float loadFactor)
public UnifiedSet(Collection<? extends T> collection)
public UnifiedSet(UnifiedSet<T> set)
public static <K> UnifiedSet<K> newSet()
public static <K> UnifiedSet<K> newSet(int size)
public static <K> UnifiedSet<K> newSet(Iterable<? extends K> source)
public static <K> UnifiedSet<K> newSet(int size, float loadFactor)
public static <K> UnifiedSet<K> newSetWith(K... elements)
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 MutableSet<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 UnifiedSet<T> newEmpty()
newEmpty in interface MutableCollection<T>newEmpty in interface MutableSet<T>public UnifiedSet<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 UnifiedSet<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> UnifiedSet<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 UnifiedSet<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> UnifiedSet<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> UnifiedSet<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>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 UnifiedSet<T> with(T element)
with in interface MutableCollection<T>with in interface MutableSet<T>with in interface MutableSetIterable<T>public UnifiedSet<T> with(T element1, T element2)
public UnifiedSet<T> with(T element1, T element2, T element3)
public UnifiedSet<T> with(T... elements)
public UnifiedSet<T> withAll(Iterable<? extends T> iterable)
withAll in interface MutableCollection<T>withAll in interface MutableSet<T>withAll in interface MutableSetIterable<T>public UnifiedSet<T> without(T element)
without in interface MutableCollection<T>without in interface MutableSet<T>without in interface MutableSetIterable<T>public UnifiedSet<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 UnifiedSet<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> UnifiedSetMultimap<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> UnifiedSetMultimap<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.