public abstract class AbstractUnifiedSet<T> extends AbstractRichIterable<T> implements com.gs.collections.api.set.MutableSet<T>, com.gs.collections.api.set.Pool<T>, BatchIterable<T>
| Constructor and Description |
|---|
AbstractUnifiedSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(Collection<? extends T> collection) |
<K2,V> com.gs.collections.api.map.MutableMap<K2,V> |
aggregateBy(com.gs.collections.api.block.function.Function<? super T,? extends K2> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K2,V> com.gs.collections.api.map.MutableMap<K2,V> |
aggregateInPlaceBy(com.gs.collections.api.block.function.Function<? super T,? extends K2> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator) |
boolean |
allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
com.gs.collections.api.set.MutableSet<T> |
asSynchronized() |
com.gs.collections.api.set.MutableSet<T> |
asUnmodifiable() |
<B> com.gs.collections.api.LazyIterable<com.gs.collections.api.tuple.Pair<T,B>> |
cartesianProduct(com.gs.collections.api.set.SetIterable<B> set) |
com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<T>> |
chunk(int size) |
abstract com.gs.collections.api.set.MutableSet<T> |
clone() |
<V> UnifiedSet<V> |
collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
com.gs.collections.api.set.primitive.MutableBooleanSet |
collectBoolean(com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction) |
com.gs.collections.api.set.primitive.MutableByteSet |
collectByte(com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction) |
com.gs.collections.api.set.primitive.MutableCharSet |
collectChar(com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction) |
com.gs.collections.api.set.primitive.MutableDoubleSet |
collectDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction) |
com.gs.collections.api.set.primitive.MutableFloatSet |
collectFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction) |
<V> UnifiedSet<V> |
collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
com.gs.collections.api.set.primitive.MutableIntSet |
collectInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction) |
com.gs.collections.api.set.primitive.MutableLongSet |
collectLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction) |
com.gs.collections.api.set.primitive.MutableShortSet |
collectShort(com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction) |
<P,A> UnifiedSet<A> |
collectWith(com.gs.collections.api.block.function.Function2<? super T,? super P,? extends A> function,
P parameter) |
T |
detect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
com.gs.collections.api.set.MutableSet<T> |
difference(com.gs.collections.api.set.SetIterable<? extends T> subtrahendSet) |
<R extends Set<T>> |
differenceInto(com.gs.collections.api.set.SetIterable<? extends T> subtrahendSet,
R targetSet) |
<V> UnifiedSet<V> |
flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
int |
getBatchCount(int batchSize) |
<V> UnifiedSetMultimap<V,T> |
groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
<V> com.gs.collections.api.map.MutableMap<V,T> |
groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<IV,P> IV |
injectIntoWith(IV injectValue,
com.gs.collections.api.block.function.Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter) |
com.gs.collections.api.set.MutableSet<T> |
intersect(com.gs.collections.api.set.SetIterable<? extends T> set) |
<R extends Set<T>> |
intersectInto(com.gs.collections.api.set.SetIterable<? extends T> set,
R targetSet) |
boolean |
isProperSubsetOf(com.gs.collections.api.set.SetIterable<? extends T> candidateSuperset) |
boolean |
isSubsetOf(com.gs.collections.api.set.SetIterable<? extends T> candidateSuperset) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
com.gs.collections.api.set.MutableSet<com.gs.collections.api.set.UnsortedSetIterable<T>> |
powerSet() |
boolean |
removeAll(Collection<?> collection) |
boolean |
removeAllIterable(Iterable<?> iterable) |
boolean |
removeIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
removeIfWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
retainAll(Collection<?> collection) |
com.gs.collections.api.set.MutableSet<T> |
symmetricDifference(com.gs.collections.api.set.SetIterable<? extends T> setB) |
<R extends Set<T>> |
symmetricDifferenceInto(com.gs.collections.api.set.SetIterable<? extends T> set,
R targetSet) |
com.gs.collections.api.set.MutableSet<T> |
union(com.gs.collections.api.set.SetIterable<? extends T> set) |
<R extends Set<T>> |
unionInto(com.gs.collections.api.set.SetIterable<? extends T> set,
R targetSet) |
<S> com.gs.collections.api.set.MutableSet<com.gs.collections.api.tuple.Pair<T,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
com.gs.collections.api.set.MutableSet<com.gs.collections.api.tuple.Pair<T,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
appendString, appendString, appendString, asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detectIfNone, detectWith, detectWithIfNone, flatCollect, forEach, forEachWith, forEachWithIndex, 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, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgroupBy, newEmpty, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, tap, toImmutable, with, withAll, without, withoutAlladdAllIterable, retainAllIterable, selectAndRejectWithappendString, appendString, appendString, asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detectIfNone, detectWith, detectWithIfNone, each, flatCollect, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, notEmpty, reject, rejectWith, select, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexforEach, forEachWith, forEachWithIndexadd, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, size, spliterator, toArray, toArrayparallelStream, removeIf, streamclear, get, put, removeFromPool, sizebatchForEach, forEach, sizepublic abstract com.gs.collections.api.set.MutableSet<T> clone()
public int getBatchCount(int batchSize)
getBatchCount in interface BatchIterable<T>public boolean removeIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
removeIf in interface com.gs.collections.api.collection.MutableCollection<T>public <P> boolean removeIfWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
removeIfWith in interface com.gs.collections.api.collection.MutableCollection<T>public <V> UnifiedSet<V> collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
collect in interface com.gs.collections.api.collection.MutableCollection<T>collect in interface com.gs.collections.api.RichIterable<T>collect in interface com.gs.collections.api.set.MutableSet<T>collect in interface com.gs.collections.api.set.UnsortedSetIterable<T>public com.gs.collections.api.set.primitive.MutableBooleanSet collectBoolean(com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction)
collectBoolean in interface com.gs.collections.api.collection.MutableCollection<T>collectBoolean in interface com.gs.collections.api.RichIterable<T>collectBoolean in interface com.gs.collections.api.set.MutableSet<T>collectBoolean in interface com.gs.collections.api.set.UnsortedSetIterable<T>public com.gs.collections.api.set.primitive.MutableByteSet collectByte(com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction)
collectByte in interface com.gs.collections.api.collection.MutableCollection<T>collectByte in interface com.gs.collections.api.RichIterable<T>collectByte in interface com.gs.collections.api.set.MutableSet<T>collectByte in interface com.gs.collections.api.set.UnsortedSetIterable<T>public com.gs.collections.api.set.primitive.MutableCharSet collectChar(com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction)
collectChar in interface com.gs.collections.api.collection.MutableCollection<T>collectChar in interface com.gs.collections.api.RichIterable<T>collectChar in interface com.gs.collections.api.set.MutableSet<T>collectChar in interface com.gs.collections.api.set.UnsortedSetIterable<T>public com.gs.collections.api.set.primitive.MutableDoubleSet collectDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction)
collectDouble in interface com.gs.collections.api.collection.MutableCollection<T>collectDouble in interface com.gs.collections.api.RichIterable<T>collectDouble in interface com.gs.collections.api.set.MutableSet<T>collectDouble in interface com.gs.collections.api.set.UnsortedSetIterable<T>public com.gs.collections.api.set.primitive.MutableFloatSet collectFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction)
collectFloat in interface com.gs.collections.api.collection.MutableCollection<T>collectFloat in interface com.gs.collections.api.RichIterable<T>collectFloat in interface com.gs.collections.api.set.MutableSet<T>collectFloat in interface com.gs.collections.api.set.UnsortedSetIterable<T>public com.gs.collections.api.set.primitive.MutableIntSet collectInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction)
collectInt in interface com.gs.collections.api.collection.MutableCollection<T>collectInt in interface com.gs.collections.api.RichIterable<T>collectInt in interface com.gs.collections.api.set.MutableSet<T>collectInt in interface com.gs.collections.api.set.UnsortedSetIterable<T>public com.gs.collections.api.set.primitive.MutableLongSet collectLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction)
collectLong in interface com.gs.collections.api.collection.MutableCollection<T>collectLong in interface com.gs.collections.api.RichIterable<T>collectLong in interface com.gs.collections.api.set.MutableSet<T>collectLong in interface com.gs.collections.api.set.UnsortedSetIterable<T>public com.gs.collections.api.set.primitive.MutableShortSet collectShort(com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction)
collectShort in interface com.gs.collections.api.collection.MutableCollection<T>collectShort in interface com.gs.collections.api.RichIterable<T>collectShort in interface com.gs.collections.api.set.MutableSet<T>collectShort in interface com.gs.collections.api.set.UnsortedSetIterable<T>public <V> UnifiedSet<V> flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
flatCollect in interface com.gs.collections.api.collection.MutableCollection<T>flatCollect in interface com.gs.collections.api.RichIterable<T>flatCollect in interface com.gs.collections.api.set.MutableSet<T>flatCollect in interface com.gs.collections.api.set.UnsortedSetIterable<T>public <P,A> UnifiedSet<A> collectWith(com.gs.collections.api.block.function.Function2<? super T,? super P,? extends A> function, P parameter)
collectWith in interface com.gs.collections.api.collection.MutableCollection<T>collectWith in interface com.gs.collections.api.RichIterable<T>collectWith in interface com.gs.collections.api.set.MutableSet<T>collectWith in interface com.gs.collections.api.set.UnsortedSetIterable<T>public <V> UnifiedSet<V> collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, com.gs.collections.api.block.function.Function<? super T,? extends V> function)
collectIf in interface com.gs.collections.api.collection.MutableCollection<T>collectIf in interface com.gs.collections.api.RichIterable<T>collectIf in interface com.gs.collections.api.set.MutableSet<T>collectIf in interface com.gs.collections.api.set.UnsortedSetIterable<T>public T detect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
detect in interface com.gs.collections.api.RichIterable<T>detect in class AbstractRichIterable<T>public boolean anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
anySatisfy in interface com.gs.collections.api.RichIterable<T>anySatisfy in class AbstractRichIterable<T>public <P> boolean anySatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface com.gs.collections.api.RichIterable<T>anySatisfyWith in class AbstractRichIterable<T>public boolean allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
allSatisfy in interface com.gs.collections.api.RichIterable<T>allSatisfy in class AbstractRichIterable<T>public <P> boolean allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface com.gs.collections.api.RichIterable<T>allSatisfyWith in class AbstractRichIterable<T>public boolean noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
noneSatisfy in interface com.gs.collections.api.RichIterable<T>noneSatisfy in class AbstractRichIterable<T>public <P> boolean noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface com.gs.collections.api.RichIterable<T>noneSatisfyWith in class AbstractRichIterable<T>public <IV,P> IV injectIntoWith(IV injectValue,
com.gs.collections.api.block.function.Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter)
injectIntoWith in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.set.MutableSet<T> asUnmodifiable()
public com.gs.collections.api.set.MutableSet<T> asSynchronized()
public boolean addAll(Collection<? extends T> collection)
public boolean removeAll(Collection<?> collection)
public boolean removeAllIterable(Iterable<?> iterable)
removeAllIterable in interface com.gs.collections.api.collection.MutableCollection<T>public boolean retainAll(Collection<?> collection)
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>public <V> com.gs.collections.api.map.MutableMap<V,T> groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
@Deprecated public <S> com.gs.collections.api.set.MutableSet<com.gs.collections.api.tuple.Pair<T,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface com.gs.collections.api.collection.MutableCollection<T>zip in interface com.gs.collections.api.RichIterable<T>zip in interface com.gs.collections.api.set.MutableSet<T>zip in interface com.gs.collections.api.set.MutableSetIterable<T>zip in interface com.gs.collections.api.set.UnsortedSetIterable<T>@Deprecated public com.gs.collections.api.set.MutableSet<com.gs.collections.api.tuple.Pair<T,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface com.gs.collections.api.collection.MutableCollection<T>zipWithIndex in interface com.gs.collections.api.RichIterable<T>zipWithIndex in interface com.gs.collections.api.set.MutableSet<T>zipWithIndex in interface com.gs.collections.api.set.MutableSetIterable<T>zipWithIndex in interface com.gs.collections.api.set.SetIterable<T>zipWithIndex in interface com.gs.collections.api.set.UnsortedSetIterable<T>public com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<T>> chunk(int size)
chunk in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.set.MutableSet<T> union(com.gs.collections.api.set.SetIterable<? extends T> set)
public <R extends Set<T>> R unionInto(com.gs.collections.api.set.SetIterable<? extends T> set, R targetSet)
unionInto in interface com.gs.collections.api.set.SetIterable<T>public com.gs.collections.api.set.MutableSet<T> intersect(com.gs.collections.api.set.SetIterable<? extends T> set)
public <R extends Set<T>> R intersectInto(com.gs.collections.api.set.SetIterable<? extends T> set, R targetSet)
intersectInto in interface com.gs.collections.api.set.SetIterable<T>public com.gs.collections.api.set.MutableSet<T> difference(com.gs.collections.api.set.SetIterable<? extends T> subtrahendSet)
public <R extends Set<T>> R differenceInto(com.gs.collections.api.set.SetIterable<? extends T> subtrahendSet, R targetSet)
differenceInto in interface com.gs.collections.api.set.SetIterable<T>public com.gs.collections.api.set.MutableSet<T> symmetricDifference(com.gs.collections.api.set.SetIterable<? extends T> setB)
public <R extends Set<T>> R symmetricDifferenceInto(com.gs.collections.api.set.SetIterable<? extends T> set, R targetSet)
symmetricDifferenceInto in interface com.gs.collections.api.set.SetIterable<T>public boolean isSubsetOf(com.gs.collections.api.set.SetIterable<? extends T> candidateSuperset)
isSubsetOf in interface com.gs.collections.api.set.SetIterable<T>public boolean isProperSubsetOf(com.gs.collections.api.set.SetIterable<? extends T> candidateSuperset)
isProperSubsetOf in interface com.gs.collections.api.set.SetIterable<T>public com.gs.collections.api.set.MutableSet<com.gs.collections.api.set.UnsortedSetIterable<T>> powerSet()
public <B> com.gs.collections.api.LazyIterable<com.gs.collections.api.tuple.Pair<T,B>> cartesianProduct(com.gs.collections.api.set.SetIterable<B> set)
cartesianProduct in interface com.gs.collections.api.set.SetIterable<T>public <K2,V> com.gs.collections.api.map.MutableMap<K2,V> aggregateInPlaceBy(com.gs.collections.api.block.function.Function<? super T,? extends K2> groupBy, com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory, com.gs.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator)
public <K2,V> com.gs.collections.api.map.MutableMap<K2,V> aggregateBy(com.gs.collections.api.block.function.Function<? super T,? extends K2> groupBy, com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory, com.gs.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Copyright © 2004–2016. All rights reserved.