@NotThreadSafe 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) |
org.eclipse.collections.api.set.ParallelUnsortedSetIterable<T> |
asParallel(ExecutorService executorService,
int batchSize) |
void |
batchForEach(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure,
int sectionIndex,
int sectionCount) |
void |
clear() |
UnifiedSet<T> |
clone() |
boolean |
contains(Object key) |
void |
each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
boolean |
equals(Object object) |
<P> void |
forEachWith(org.eclipse.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
T |
get(T key) |
T |
getFirst() |
T |
getLast() |
<V> UnifiedSetMultimap<V,T> |
groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
int |
hashCode() |
Iterator<T> |
iterator() |
UnifiedSet<T> |
newEmpty() |
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) |
org.eclipse.collections.api.partition.set.PartitionMutableSet<T> |
partition(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> org.eclipse.collections.api.partition.set.PartitionMutableSet<T> |
partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
T |
put(T key) |
void |
readExternal(ObjectInput in) |
UnifiedSet<T> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> UnifiedSet<T> |
rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
remove(Object key) |
T |
removeFromPool(T key) |
boolean |
retainAllIterable(Iterable<?> iterable) |
UnifiedSet<T> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> org.eclipse.collections.api.tuple.Twin<org.eclipse.collections.api.list.MutableList<T>> |
selectAndRejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
<S> UnifiedSet<S> |
selectInstancesOf(Class<S> clazz) |
<P> UnifiedSet<T> |
selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
int |
size() |
org.eclipse.collections.api.set.MutableSet<T> |
tap(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
org.eclipse.collections.api.set.ImmutableSet<T> |
toImmutable() |
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) |
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, groupByEach, 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, 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)
public boolean contains(Object key)
contains in interface Collection<T>contains in interface Set<T>contains in interface org.eclipse.collections.api.RichIterable<T>contains in class AbstractRichIterable<T>public void batchForEach(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure, int sectionIndex, int sectionCount)
batchForEach in interface BatchIterable<T>public org.eclipse.collections.api.set.MutableSet<T> tap(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
tap in interface org.eclipse.collections.api.collection.MutableCollection<T>tap in interface org.eclipse.collections.api.RichIterable<T>tap in interface org.eclipse.collections.api.set.MutableSet<T>tap in interface org.eclipse.collections.api.set.MutableSetIterable<T>public void each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
each in interface org.eclipse.collections.api.RichIterable<T>public <P> void forEachWith(org.eclipse.collections.api.block.procedure.Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface org.eclipse.collections.api.InternalIterable<T>forEachWith in class AbstractRichIterable<T>public void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface org.eclipse.collections.api.InternalIterable<T>forEachWithIndex in class AbstractRichIterable<T>public UnifiedSet<T> newEmpty()
public T getFirst()
getFirst in interface org.eclipse.collections.api.RichIterable<T>public T getLast()
getLast in interface org.eclipse.collections.api.RichIterable<T>public UnifiedSet<T> select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
select in interface org.eclipse.collections.api.collection.MutableCollection<T>select in interface org.eclipse.collections.api.RichIterable<T>select in interface org.eclipse.collections.api.set.MutableSet<T>select in interface org.eclipse.collections.api.set.MutableSetIterable<T>select in interface org.eclipse.collections.api.set.SetIterable<T>select in interface org.eclipse.collections.api.set.UnsortedSetIterable<T>public <P> UnifiedSet<T> selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface org.eclipse.collections.api.collection.MutableCollection<T>selectWith in interface org.eclipse.collections.api.RichIterable<T>selectWith in interface org.eclipse.collections.api.set.MutableSet<T>selectWith in interface org.eclipse.collections.api.set.MutableSetIterable<T>selectWith in interface org.eclipse.collections.api.set.SetIterable<T>selectWith in interface org.eclipse.collections.api.set.UnsortedSetIterable<T>public UnifiedSet<T> reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
reject in interface org.eclipse.collections.api.collection.MutableCollection<T>reject in interface org.eclipse.collections.api.RichIterable<T>reject in interface org.eclipse.collections.api.set.MutableSet<T>reject in interface org.eclipse.collections.api.set.MutableSetIterable<T>reject in interface org.eclipse.collections.api.set.SetIterable<T>reject in interface org.eclipse.collections.api.set.UnsortedSetIterable<T>public <P> UnifiedSet<T> rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface org.eclipse.collections.api.collection.MutableCollection<T>rejectWith in interface org.eclipse.collections.api.RichIterable<T>rejectWith in interface org.eclipse.collections.api.set.MutableSet<T>rejectWith in interface org.eclipse.collections.api.set.MutableSetIterable<T>rejectWith in interface org.eclipse.collections.api.set.SetIterable<T>rejectWith in interface org.eclipse.collections.api.set.UnsortedSetIterable<T>public <P> org.eclipse.collections.api.tuple.Twin<org.eclipse.collections.api.list.MutableList<T>> selectAndRejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
selectAndRejectWith in interface org.eclipse.collections.api.collection.MutableCollection<T>public org.eclipse.collections.api.partition.set.PartitionMutableSet<T> partition(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
partition in interface org.eclipse.collections.api.collection.MutableCollection<T>partition in interface org.eclipse.collections.api.RichIterable<T>partition in interface org.eclipse.collections.api.set.MutableSet<T>partition in interface org.eclipse.collections.api.set.MutableSetIterable<T>partition in interface org.eclipse.collections.api.set.SetIterable<T>public <P> org.eclipse.collections.api.partition.set.PartitionMutableSet<T> partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface org.eclipse.collections.api.collection.MutableCollection<T>partitionWith in interface org.eclipse.collections.api.RichIterable<T>partitionWith in interface org.eclipse.collections.api.set.MutableSet<T>partitionWith in interface org.eclipse.collections.api.set.MutableSetIterable<T>partitionWith in interface org.eclipse.collections.api.set.SetIterable<T>public <S> UnifiedSet<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface org.eclipse.collections.api.collection.MutableCollection<T>selectInstancesOf in interface org.eclipse.collections.api.RichIterable<T>selectInstancesOf in interface org.eclipse.collections.api.set.MutableSet<T>selectInstancesOf in interface org.eclipse.collections.api.set.MutableSetIterable<T>selectInstancesOf in interface org.eclipse.collections.api.set.SetIterable<T>selectInstancesOf in interface org.eclipse.collections.api.set.UnsortedSetIterable<T>public org.eclipse.collections.api.set.ImmutableSet<T> toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.MutableCollection<T>toImmutable in interface org.eclipse.collections.api.set.MutableSet<T>toImmutable in interface org.eclipse.collections.api.set.SetIterable<T>toImmutable in interface org.eclipse.collections.api.set.UnsortedSetIterable<T>public UnifiedSet<T> with(T element)
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)
public UnifiedSet<T> without(T element)
public UnifiedSet<T> withoutAll(Iterable<? extends T> elements)
public boolean addAllIterable(Iterable<? extends T> iterable)
addAllIterable in interface org.eclipse.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 org.eclipse.collections.api.collection.MutableCollection<T>public UnifiedSet<T> clone()
clone in interface org.eclipse.collections.api.set.MutableSet<T>clone in class AbstractUnifiedSet<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface Set<T>toArray in interface org.eclipse.collections.api.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 org.eclipse.collections.api.RichIterable<T>toArray in class AbstractRichIterable<T>public <V> UnifiedSetMultimap<V,T> groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
groupBy in interface org.eclipse.collections.api.collection.MutableCollection<T>groupBy in interface org.eclipse.collections.api.RichIterable<T>groupBy in interface org.eclipse.collections.api.set.MutableSet<T>groupBy in interface org.eclipse.collections.api.set.MutableSetIterable<T>groupBy in interface org.eclipse.collections.api.set.UnsortedSetIterable<T>public T removeFromPool(T key)
removeFromPool in interface org.eclipse.collections.api.set.Pool<T>public org.eclipse.collections.api.set.ParallelUnsortedSetIterable<T> asParallel(ExecutorService executorService, int batchSize)
Copyright © 2004–2018. All rights reserved.