public class UnmodifiableMutableSet<T> extends AbstractUnmodifiableMutableCollection<T> implements MutableSet<T>, Serializable
MutableSet.asUnmodifiable(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
ParallelUnsortedSetIterable<T> |
asParallel(ExecutorService executorService,
int batchSize) |
MutableSet<T> |
asSynchronized() |
MutableSet<T> |
asUnmodifiable() |
<B> LazyIterable<Pair<T,B>> |
cartesianProduct(SetIterable<B> set) |
UnmodifiableMutableSet<T> |
clone() |
<V> MutableSet<V> |
collect(Function<? super T,? extends V> function) |
MutableBooleanSet |
collectBoolean(BooleanFunction<? super T> booleanFunction) |
MutableByteSet |
collectByte(ByteFunction<? super T> byteFunction) |
MutableCharSet |
collectChar(CharFunction<? super T> charFunction) |
MutableDoubleSet |
collectDouble(DoubleFunction<? super T> doubleFunction) |
MutableFloatSet |
collectFloat(FloatFunction<? super T> floatFunction) |
<V> MutableSet<V> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
MutableIntSet |
collectInt(IntFunction<? super T> intFunction) |
MutableLongSet |
collectLong(LongFunction<? super T> longFunction) |
MutableShortSet |
collectShort(ShortFunction<? super T> shortFunction) |
<P,A> MutableSet<A> |
collectWith(Function2<? super T,? super P,? extends A> function,
P parameter) |
MutableSet<T> |
difference(SetIterable<? extends T> subtrahendSet) |
<R extends Set<T>> |
differenceInto(SetIterable<? extends T> subtrahendSet,
R targetSet) |
boolean |
equals(Object obj) |
<V> MutableSet<V> |
flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> MutableSetMultimap<V,T> |
groupBy(Function<? super T,? extends V> function) |
<V> MutableSetMultimap<V,T> |
groupByEach(Function<? super T,? extends Iterable<V>> function) |
int |
hashCode() |
MutableSet<T> |
intersect(SetIterable<? extends T> set) |
<R extends Set<T>> |
intersectInto(SetIterable<? extends T> set,
R targetSet) |
boolean |
isProperSubsetOf(SetIterable<? extends T> candidateSuperset) |
boolean |
isSubsetOf(SetIterable<? extends T> candidateSuperset) |
MutableSet<T> |
newEmpty() |
static <E,S extends Set<E>> |
of(S set)
This method will take a MutableSet and wrap it directly in a UnmodifiableMutableSet.
|
PartitionMutableSet<T> |
partition(Predicate<? super T> predicate) |
<P> PartitionMutableSet<T> |
partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableSet<UnsortedSetIterable<T>> |
powerSet() |
MutableSet<T> |
reject(Predicate<? super T> predicate) |
<P> MutableSet<T> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableSet<T> |
select(Predicate<? super T> predicate) |
<S> MutableSet<S> |
selectInstancesOf(Class<S> clazz) |
<P> MutableSet<T> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableSet<T> |
symmetricDifference(SetIterable<? extends T> setB) |
<R extends Set<T>> |
symmetricDifferenceInto(SetIterable<? extends T> set,
R targetSet) |
MutableSet<T> |
tap(Procedure<? super T> procedure) |
ImmutableSet<T> |
toImmutable() |
MutableSet<T> |
union(SetIterable<? extends T> set) |
<R extends Set<T>> |
unionInto(SetIterable<? extends T> set,
R targetSet) |
MutableSet<T> |
with(T element) |
MutableSet<T> |
withAll(Iterable<? extends T> elements) |
MutableSet<T> |
without(T element) |
MutableSet<T> |
withoutAll(Iterable<? extends T> elements) |
<S> MutableSet<Pair<T,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
<S,R extends Collection<Pair<T,S>>> |
zip(Iterable<S> that,
R target) |
MutableSet<Pair<T,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
<R extends Collection<Pair<T,Integer>>> |
zipWithIndex(R target) |
add, addAll, addAllIterable, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, clear, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsNone, containsNoneIterable, count, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachWith, forEachWithIndex, getFirst, getLast, getOnly, groupBy, groupByEach, groupByUniqueKey, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoWith, into, isEmpty, iterator, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, remove, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, retainAllIterable, select, selectAndRejectWith, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedList, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toStringflatCollectWith, toImmutableSetaddAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getFirst, getLast, 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, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, 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, toStringforEach, forEachWith, forEachWithIndexadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streampublic static <E,S extends Set<E>> UnmodifiableMutableSet<E> of(S set)
public MutableSet<T> asUnmodifiable()
asUnmodifiable in interface MutableCollection<T>asUnmodifiable in interface MutableSet<T>asUnmodifiable in class AbstractUnmodifiableMutableCollection<T>public MutableSet<T> asSynchronized()
asSynchronized in interface MutableCollection<T>asSynchronized in interface MutableSet<T>asSynchronized in class AbstractUnmodifiableMutableCollection<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>toImmutable in class AbstractUnmodifiableMutableCollection<T>public boolean equals(Object obj)
public int hashCode()
public UnmodifiableMutableSet<T> clone()
clone in interface MutableSet<T>clone in class Objectpublic MutableSet<T> newEmpty()
newEmpty in interface MutableCollection<T>newEmpty in interface MutableSet<T>newEmpty in class AbstractUnmodifiableMutableCollection<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>tap in class AbstractUnmodifiableMutableCollection<T>public MutableSet<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>select in class AbstractUnmodifiableMutableCollection<T>public <P> MutableSet<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>selectWith in class AbstractUnmodifiableMutableCollection<T>public MutableSet<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>reject in class AbstractUnmodifiableMutableCollection<T>public <P> MutableSet<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>rejectWith in class AbstractUnmodifiableMutableCollection<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>partition in class AbstractUnmodifiableMutableCollection<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>partitionWith in class AbstractUnmodifiableMutableCollection<T>public <S> MutableSet<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>selectInstancesOf in class AbstractUnmodifiableMutableCollection<T>public <V> MutableSet<V> collect(Function<? super T,? extends V> function)
collect in interface MutableCollection<T>collect in interface RichIterable<T>collect in interface MutableSet<T>collect in interface UnsortedSetIterable<T>collect in class AbstractUnmodifiableMutableCollection<T>public MutableBooleanSet collectBoolean(BooleanFunction<? super T> booleanFunction)
collectBoolean in interface MutableCollection<T>collectBoolean in interface RichIterable<T>collectBoolean in interface MutableSet<T>collectBoolean in interface UnsortedSetIterable<T>collectBoolean in class AbstractUnmodifiableMutableCollection<T>public MutableByteSet collectByte(ByteFunction<? super T> byteFunction)
collectByte in interface MutableCollection<T>collectByte in interface RichIterable<T>collectByte in interface MutableSet<T>collectByte in interface UnsortedSetIterable<T>collectByte in class AbstractUnmodifiableMutableCollection<T>public MutableCharSet collectChar(CharFunction<? super T> charFunction)
collectChar in interface MutableCollection<T>collectChar in interface RichIterable<T>collectChar in interface MutableSet<T>collectChar in interface UnsortedSetIterable<T>collectChar in class AbstractUnmodifiableMutableCollection<T>public MutableDoubleSet collectDouble(DoubleFunction<? super T> doubleFunction)
collectDouble in interface MutableCollection<T>collectDouble in interface RichIterable<T>collectDouble in interface MutableSet<T>collectDouble in interface UnsortedSetIterable<T>collectDouble in class AbstractUnmodifiableMutableCollection<T>public MutableFloatSet collectFloat(FloatFunction<? super T> floatFunction)
collectFloat in interface MutableCollection<T>collectFloat in interface RichIterable<T>collectFloat in interface MutableSet<T>collectFloat in interface UnsortedSetIterable<T>collectFloat in class AbstractUnmodifiableMutableCollection<T>public MutableIntSet collectInt(IntFunction<? super T> intFunction)
collectInt in interface MutableCollection<T>collectInt in interface RichIterable<T>collectInt in interface MutableSet<T>collectInt in interface UnsortedSetIterable<T>collectInt in class AbstractUnmodifiableMutableCollection<T>public MutableLongSet collectLong(LongFunction<? super T> longFunction)
collectLong in interface MutableCollection<T>collectLong in interface RichIterable<T>collectLong in interface MutableSet<T>collectLong in interface UnsortedSetIterable<T>collectLong in class AbstractUnmodifiableMutableCollection<T>public MutableShortSet collectShort(ShortFunction<? super T> shortFunction)
collectShort in interface MutableCollection<T>collectShort in interface RichIterable<T>collectShort in interface MutableSet<T>collectShort in interface UnsortedSetIterable<T>collectShort in class AbstractUnmodifiableMutableCollection<T>public <V> MutableSet<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect in interface MutableCollection<T>flatCollect in interface RichIterable<T>flatCollect in interface MutableSet<T>flatCollect in interface UnsortedSetIterable<T>flatCollect in class AbstractUnmodifiableMutableCollection<T>public <P,A> MutableSet<A> collectWith(Function2<? super T,? super P,? extends A> function, P parameter)
collectWith in interface MutableCollection<T>collectWith in interface RichIterable<T>collectWith in interface MutableSet<T>collectWith in interface UnsortedSetIterable<T>collectWith in class AbstractUnmodifiableMutableCollection<T>public <V> MutableSet<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
collectIf in interface MutableCollection<T>collectIf in interface RichIterable<T>collectIf in interface MutableSet<T>collectIf in interface UnsortedSetIterable<T>collectIf in class AbstractUnmodifiableMutableCollection<T>public <V> MutableSetMultimap<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>groupBy in class AbstractUnmodifiableMutableCollection<T>public <V> MutableSetMultimap<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>groupByEach in class AbstractUnmodifiableMutableCollection<T>@Deprecated public <S> MutableSet<Pair<T,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface MutableCollection<T>zip in interface RichIterable<T>zip in interface MutableSet<T>zip in interface MutableSetIterable<T>zip in interface UnsortedSetIterable<T>zip in class AbstractUnmodifiableMutableCollection<T>public <S,R extends Collection<Pair<T,S>>> R zip(Iterable<S> that, R target)
zip in interface RichIterable<T>zip in class AbstractUnmodifiableMutableCollection<T>@Deprecated public MutableSet<Pair<T,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface MutableCollection<T>zipWithIndex in interface RichIterable<T>zipWithIndex in interface MutableSet<T>zipWithIndex in interface MutableSetIterable<T>zipWithIndex in interface SetIterable<T>zipWithIndex in interface UnsortedSetIterable<T>zipWithIndex in class AbstractUnmodifiableMutableCollection<T>public <R extends Collection<Pair<T,Integer>>> R zipWithIndex(R target)
zipWithIndex in interface RichIterable<T>zipWithIndex in class AbstractUnmodifiableMutableCollection<T>public MutableSet<T> union(SetIterable<? extends T> set)
union in interface MutableSet<T>union in interface SetIterable<T>union in interface UnsortedSetIterable<T>public <R extends Set<T>> R unionInto(SetIterable<? extends T> set, R targetSet)
unionInto in interface SetIterable<T>public MutableSet<T> intersect(SetIterable<? extends T> set)
intersect in interface MutableSet<T>intersect in interface SetIterable<T>intersect in interface UnsortedSetIterable<T>public <R extends Set<T>> R intersectInto(SetIterable<? extends T> set, R targetSet)
intersectInto in interface SetIterable<T>public MutableSet<T> difference(SetIterable<? extends T> subtrahendSet)
difference in interface MutableSet<T>difference in interface SetIterable<T>difference in interface UnsortedSetIterable<T>public <R extends Set<T>> R differenceInto(SetIterable<? extends T> subtrahendSet, R targetSet)
differenceInto in interface SetIterable<T>public MutableSet<T> symmetricDifference(SetIterable<? extends T> setB)
symmetricDifference in interface MutableSet<T>symmetricDifference in interface SetIterable<T>symmetricDifference in interface UnsortedSetIterable<T>public <R extends Set<T>> R symmetricDifferenceInto(SetIterable<? extends T> set, R targetSet)
symmetricDifferenceInto in interface SetIterable<T>public boolean isSubsetOf(SetIterable<? extends T> candidateSuperset)
isSubsetOf in interface SetIterable<T>public boolean isProperSubsetOf(SetIterable<? extends T> candidateSuperset)
isProperSubsetOf in interface SetIterable<T>public MutableSet<UnsortedSetIterable<T>> powerSet()
powerSet in interface MutableSet<T>powerSet in interface UnsortedSetIterable<T>public <B> LazyIterable<Pair<T,B>> cartesianProduct(SetIterable<B> set)
cartesianProduct in interface SetIterable<T>public MutableSet<T> with(T element)
with in interface MutableCollection<T>with in interface MutableSet<T>with in interface MutableSetIterable<T>with in class AbstractUnmodifiableMutableCollection<T>public MutableSet<T> without(T element)
without in interface MutableCollection<T>without in interface MutableSet<T>without in interface MutableSetIterable<T>without in class AbstractUnmodifiableMutableCollection<T>public MutableSet<T> withAll(Iterable<? extends T> elements)
withAll in interface MutableCollection<T>withAll in interface MutableSet<T>withAll in interface MutableSetIterable<T>withAll in class AbstractUnmodifiableMutableCollection<T>public MutableSet<T> withoutAll(Iterable<? extends T> elements)
withoutAll in interface MutableCollection<T>withoutAll in interface MutableSet<T>withoutAll in interface MutableSetIterable<T>withoutAll in class AbstractUnmodifiableMutableCollection<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.