public final class SortedSetAdapter<T> extends AbstractCollectionAdapter<T> implements Serializable, MutableSortedSet<T>
To create a new wrapper around an existing SortedSet instance, use the adapt(SortedSet) factory method.
add, addAll, addAllIterable, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, asLazy, chunk, clear, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, forEachWith, forEachWithIndex, getOnly, groupBy, groupByEach, groupByUniqueKey, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoWith, into, isEmpty, iterator, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, remove, removeAll, 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, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toString, zip, zipWithIndexcollectWithIndex, flatCollectWith, toImmutableSortedSetaddAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongmax, mincollectWithIndex, forEachWithIndex, getFirstOptional, getLastOptional, rejectWithIndex, selectWithIndex, toStack, zip, zipWithIndexaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, 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, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, maxBy, maxByOptional, maxOptional, maxOptional, 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, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toStringforEach, forEachWithspliteratoradd, addAll, clear, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streampublic MutableSortedSet<T> asUnmodifiable()
asUnmodifiable in interface MutableCollection<T>asUnmodifiable in interface MutableSortedSet<T>public MutableSortedSet<T> asSynchronized()
asSynchronized in interface MutableCollection<T>asSynchronized in interface MutableSortedSet<T>public ImmutableSortedSet<T> toImmutable()
toImmutable in interface MutableCollection<T>toImmutable in interface SetIterable<T>toImmutable in interface MutableSortedSet<T>toImmutable in interface SortedSetIterable<T>public static <T> MutableSortedSet<T> adapt(SortedSet<T> set)
public MutableSortedSet<T> clone()
clone in interface MutableSortedSet<T>clone in class Objectpublic boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in interface RichIterable<T>contains in class AbstractCollectionAdapter<T>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<T>containsAll in interface Set<T>containsAll in interface RichIterable<T>containsAll in class AbstractCollectionAdapter<T>public boolean equals(Object obj)
public int hashCode()
public SortedSetAdapter<T> with(T element)
with in interface MutableCollection<T>with in interface MutableSetIterable<T>with in interface MutableSortedSet<T>public SortedSetAdapter<T> with(T element1, T element2)
public SortedSetAdapter<T> with(T element1, T element2, T element3)
public SortedSetAdapter<T> with(T... elements)
public SortedSetAdapter<T> without(T element)
without in interface MutableCollection<T>without in interface MutableSetIterable<T>without in interface MutableSortedSet<T>public SortedSetAdapter<T> withAll(Iterable<? extends T> elements)
withAll in interface MutableCollection<T>withAll in interface MutableSetIterable<T>withAll in interface MutableSortedSet<T>public SortedSetAdapter<T> withoutAll(Iterable<? extends T> elements)
withoutAll in interface MutableCollection<T>withoutAll in interface MutableSetIterable<T>withoutAll in interface MutableSortedSet<T>@Deprecated public MutableSortedSet<T> newEmpty()
TreeSortedSet.newSet() instead (inlineable)newEmpty in interface MutableCollection<T>newEmpty in interface MutableSortedSet<T>public boolean removeAllIterable(Iterable<?> iterable)
removeAllIterable in interface MutableCollection<T>removeAllIterable in class AbstractCollectionAdapter<T>public MutableSortedSet<T> tap(Procedure<? super T> procedure)
tap in interface MutableCollection<T>tap in interface OrderedIterable<T>tap in interface ReversibleIterable<T>tap in interface SortedIterable<T>tap in interface RichIterable<T>tap in interface MutableSetIterable<T>tap in interface SetIterable<T>tap in interface MutableSortedSet<T>tap in interface SortedSetIterable<T>tap in class AbstractCollectionAdapter<T>public MutableSortedSet<T> select(Predicate<? super T> predicate)
select in interface MutableCollection<T>select in interface OrderedIterable<T>select in interface ReversibleIterable<T>select in interface SortedIterable<T>select in interface RichIterable<T>select in interface MutableSetIterable<T>select in interface SetIterable<T>select in interface MutableSortedSet<T>select in interface SortedSetIterable<T>select in class AbstractCollectionAdapter<T>public MutableSortedSet<T> reject(Predicate<? super T> predicate)
reject in interface MutableCollection<T>reject in interface OrderedIterable<T>reject in interface ReversibleIterable<T>reject in interface SortedIterable<T>reject in interface RichIterable<T>reject in interface MutableSetIterable<T>reject in interface SetIterable<T>reject in interface MutableSortedSet<T>reject in interface SortedSetIterable<T>reject in class AbstractCollectionAdapter<T>public PartitionMutableSortedSet<T> partition(Predicate<? super T> predicate)
partition in interface MutableCollection<T>partition in interface OrderedIterable<T>partition in interface ReversibleIterable<T>partition in interface SortedIterable<T>partition in interface RichIterable<T>partition in interface MutableSetIterable<T>partition in interface SetIterable<T>partition in interface MutableSortedSet<T>partition in interface SortedSetIterable<T>partition in class AbstractCollectionAdapter<T>public <P> PartitionMutableSortedSet<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface MutableCollection<T>partitionWith in interface OrderedIterable<T>partitionWith in interface ReversibleIterable<T>partitionWith in interface RichIterable<T>partitionWith in interface MutableSetIterable<T>partitionWith in interface SetIterable<T>partitionWith in interface MutableSortedSet<T>partitionWith in interface SortedSetIterable<T>partitionWith in class AbstractCollectionAdapter<T>public PartitionMutableSortedSet<T> partitionWhile(Predicate<? super T> predicate)
partitionWhile in interface OrderedIterable<T>partitionWhile in interface ReversibleIterable<T>partitionWhile in interface SortedIterable<T>partitionWhile in interface MutableSortedSet<T>partitionWhile in interface SortedSetIterable<T>public MutableSortedSet<T> takeWhile(Predicate<? super T> predicate)
takeWhile in interface OrderedIterable<T>takeWhile in interface ReversibleIterable<T>takeWhile in interface SortedIterable<T>takeWhile in interface MutableSortedSet<T>takeWhile in interface SortedSetIterable<T>public MutableSortedSet<T> dropWhile(Predicate<? super T> predicate)
dropWhile in interface OrderedIterable<T>dropWhile in interface ReversibleIterable<T>dropWhile in interface SortedIterable<T>dropWhile in interface MutableSortedSet<T>dropWhile in interface SortedSetIterable<T>public <S> MutableSortedSet<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface MutableCollection<T>selectInstancesOf in interface OrderedIterable<T>selectInstancesOf in interface ReversibleIterable<T>selectInstancesOf in interface SortedIterable<T>selectInstancesOf in interface RichIterable<T>selectInstancesOf in interface MutableSetIterable<T>selectInstancesOf in interface SetIterable<T>selectInstancesOf in interface MutableSortedSet<T>selectInstancesOf in interface SortedSetIterable<T>selectInstancesOf in class AbstractCollectionAdapter<T>public <V> MutableList<V> collect(Function<? super T,? extends V> function)
collect in interface MutableCollection<T>collect in interface OrderedIterable<T>collect in interface ReversibleIterable<T>collect in interface RichIterable<T>collect in interface MutableSortedSet<T>collect in interface SortedSetIterable<T>collect in class AbstractCollectionAdapter<T>public MutableBooleanList collectBoolean(BooleanFunction<? super T> booleanFunction)
collectBoolean in interface MutableCollection<T>collectBoolean in interface OrderedIterable<T>collectBoolean in interface ReversibleIterable<T>collectBoolean in interface RichIterable<T>collectBoolean in interface MutableSortedSet<T>collectBoolean in interface SortedSetIterable<T>public MutableByteList collectByte(ByteFunction<? super T> byteFunction)
collectByte in interface MutableCollection<T>collectByte in interface OrderedIterable<T>collectByte in interface ReversibleIterable<T>collectByte in interface RichIterable<T>collectByte in interface MutableSortedSet<T>collectByte in interface SortedSetIterable<T>public MutableCharList collectChar(CharFunction<? super T> charFunction)
collectChar in interface MutableCollection<T>collectChar in interface OrderedIterable<T>collectChar in interface ReversibleIterable<T>collectChar in interface RichIterable<T>collectChar in interface MutableSortedSet<T>collectChar in interface SortedSetIterable<T>public MutableDoubleList collectDouble(DoubleFunction<? super T> doubleFunction)
collectDouble in interface MutableCollection<T>collectDouble in interface OrderedIterable<T>collectDouble in interface ReversibleIterable<T>collectDouble in interface RichIterable<T>collectDouble in interface MutableSortedSet<T>collectDouble in interface SortedSetIterable<T>public MutableFloatList collectFloat(FloatFunction<? super T> floatFunction)
collectFloat in interface MutableCollection<T>collectFloat in interface OrderedIterable<T>collectFloat in interface ReversibleIterable<T>collectFloat in interface RichIterable<T>collectFloat in interface MutableSortedSet<T>collectFloat in interface SortedSetIterable<T>public MutableIntList collectInt(IntFunction<? super T> intFunction)
collectInt in interface MutableCollection<T>collectInt in interface OrderedIterable<T>collectInt in interface ReversibleIterable<T>collectInt in interface RichIterable<T>collectInt in interface MutableSortedSet<T>collectInt in interface SortedSetIterable<T>public MutableLongList collectLong(LongFunction<? super T> longFunction)
collectLong in interface MutableCollection<T>collectLong in interface OrderedIterable<T>collectLong in interface ReversibleIterable<T>collectLong in interface RichIterable<T>collectLong in interface MutableSortedSet<T>collectLong in interface SortedSetIterable<T>public MutableShortList collectShort(ShortFunction<? super T> shortFunction)
collectShort in interface MutableCollection<T>collectShort in interface OrderedIterable<T>collectShort in interface ReversibleIterable<T>collectShort in interface RichIterable<T>collectShort in interface MutableSortedSet<T>collectShort in interface SortedSetIterable<T>public <V> MutableList<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
collectIf in interface MutableCollection<T>collectIf in interface OrderedIterable<T>collectIf in interface ReversibleIterable<T>collectIf in interface RichIterable<T>collectIf in interface MutableSortedSet<T>collectIf in interface SortedSetIterable<T>collectIf in class AbstractCollectionAdapter<T>public <V> MutableList<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect in interface MutableCollection<T>flatCollect in interface OrderedIterable<T>flatCollect in interface ReversibleIterable<T>flatCollect in interface RichIterable<T>flatCollect in interface MutableSortedSet<T>flatCollect in interface SortedSetIterable<T>flatCollect in class AbstractCollectionAdapter<T>public int detectIndex(Predicate<? super T> predicate)
detectIndex in interface OrderedIterable<T>public <V> TreeSortedSetMultimap<V,T> groupBy(Function<? super T,? extends V> function)
groupBy in interface MutableCollection<T>groupBy in interface OrderedIterable<T>groupBy in interface ReversibleIterable<T>groupBy in interface SortedIterable<T>groupBy in interface RichIterable<T>groupBy in interface MutableSetIterable<T>groupBy in interface MutableSortedSet<T>groupBy in interface SortedSetIterable<T>groupBy in class AbstractCollectionAdapter<T>public <V> TreeSortedSetMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
groupByEach in interface MutableCollection<T>groupByEach in interface OrderedIterable<T>groupByEach in interface ReversibleIterable<T>groupByEach in interface SortedIterable<T>groupByEach in interface RichIterable<T>groupByEach in interface MutableSetIterable<T>groupByEach in interface MutableSortedSet<T>groupByEach in interface SortedSetIterable<T>groupByEach in class AbstractCollectionAdapter<T>public <P> MutableSortedSet<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface MutableCollection<T>selectWith in interface OrderedIterable<T>selectWith in interface ReversibleIterable<T>selectWith in interface SortedIterable<T>selectWith in interface RichIterable<T>selectWith in interface MutableSetIterable<T>selectWith in interface SetIterable<T>selectWith in interface MutableSortedSet<T>selectWith in interface SortedSetIterable<T>selectWith in class AbstractCollectionAdapter<T>public <P> MutableSortedSet<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface MutableCollection<T>rejectWith in interface OrderedIterable<T>rejectWith in interface ReversibleIterable<T>rejectWith in interface SortedIterable<T>rejectWith in interface RichIterable<T>rejectWith in interface MutableSetIterable<T>rejectWith in interface SetIterable<T>rejectWith in interface MutableSortedSet<T>rejectWith in interface SortedSetIterable<T>rejectWith in class AbstractCollectionAdapter<T>public <P,V> MutableList<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
collectWith in interface MutableCollection<T>collectWith in interface OrderedIterable<T>collectWith in interface ReversibleIterable<T>collectWith in interface RichIterable<T>collectWith in interface MutableSortedSet<T>collectWith in interface SortedSetIterable<T>collectWith in class AbstractCollectionAdapter<T>public <S> MutableList<Pair<T,S>> zip(Iterable<S> that)
zip in interface MutableCollection<T>zip in interface OrderedIterable<T>zip in interface ReversibleIterable<T>zip in interface SortedIterable<T>zip in interface RichIterable<T>zip in interface MutableSetIterable<T>zip in interface MutableSortedSet<T>zip in class AbstractCollectionAdapter<T>public MutableSortedSet<Pair<T,Integer>> zipWithIndex()
zipWithIndex in interface MutableCollection<T>zipWithIndex in interface OrderedIterable<T>zipWithIndex in interface ReversibleIterable<T>zipWithIndex in interface SortedIterable<T>zipWithIndex in interface RichIterable<T>zipWithIndex in interface MutableSetIterable<T>zipWithIndex in interface SetIterable<T>zipWithIndex in interface MutableSortedSet<T>zipWithIndex in interface SortedSetIterable<T>zipWithIndex in class AbstractCollectionAdapter<T>public MutableSortedSet<T> distinct()
distinct in interface OrderedIterable<T>distinct in interface ReversibleIterable<T>distinct in interface SortedIterable<T>distinct in interface MutableSortedSet<T>distinct in interface SortedSetIterable<T>public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
corresponds in interface OrderedIterable<T>public void forEach(int fromIndex,
int toIndex,
Procedure<? super T> procedure)
forEach in interface OrderedIterable<T>public void forEachWithIndex(int fromIndex,
int toIndex,
ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface OrderedIterable<T>public MutableSortedSet<T> union(SetIterable<? extends T> set)
union in interface SetIterable<T>union in interface MutableSortedSet<T>union in interface SortedSetIterable<T>public <R extends Set<T>> R unionInto(SetIterable<? extends T> set, R targetSet)
unionInto in interface SetIterable<T>public MutableSortedSet<T> intersect(SetIterable<? extends T> set)
intersect in interface SetIterable<T>intersect in interface MutableSortedSet<T>intersect in interface SortedSetIterable<T>public <R extends Set<T>> R intersectInto(SetIterable<? extends T> set, R targetSet)
intersectInto in interface SetIterable<T>public MutableSortedSet<T> difference(SetIterable<? extends T> subtrahendSet)
difference in interface SetIterable<T>difference in interface MutableSortedSet<T>difference in interface SortedSetIterable<T>public <R extends Set<T>> R differenceInto(SetIterable<? extends T> subtrahendSet, R targetSet)
differenceInto in interface SetIterable<T>public MutableSortedSet<T> symmetricDifference(SetIterable<? extends T> setB)
symmetricDifference in interface SetIterable<T>symmetricDifference in interface MutableSortedSet<T>symmetricDifference in interface SortedSetIterable<T>public <R extends Set<T>> R symmetricDifferenceInto(SetIterable<? extends T> set, R targetSet)
symmetricDifferenceInto in interface SetIterable<T>public Comparator<? super T> comparator()
comparator in interface SortedSet<T>comparator in interface SortedIterable<T>comparator in interface SortedSetIterable<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 MutableSortedSet<SortedSetIterable<T>> powerSet()
powerSet in interface MutableSortedSet<T>powerSet in interface SortedSetIterable<T>public <B> LazyIterable<Pair<T,B>> cartesianProduct(SetIterable<B> set)
cartesianProduct in interface SetIterable<T>public MutableSortedSet<T> subSet(T fromElement, T toElement)
public MutableSortedSet<T> headSet(T toElement)
public MutableSortedSet<T> tailSet(T fromElement)
public int indexOf(Object object)
indexOf in interface OrderedIterable<T>public T getFirst()
getFirst in interface OrderedIterable<T>getFirst in interface RichIterable<T>getFirst in class AbstractCollectionAdapter<T>public T getLast()
getLast in interface OrderedIterable<T>getLast in interface RichIterable<T>getLast in class AbstractCollectionAdapter<T>public int compareTo(SortedSetIterable<T> o)
compareTo in interface Comparable<SortedSetIterable<T>>public ParallelSortedSetIterable<T> asParallel(ExecutorService executorService, int batchSize)
asParallel in interface SetIterable<T>asParallel in interface SortedSetIterable<T>public MutableSortedSet<T> toReversed()
toReversed in interface ReversibleIterable<T>toReversed in interface MutableSortedSet<T>toReversed in interface SortedSetIterable<T>public MutableSortedSet<T> take(int count)
take in interface ReversibleIterable<T>take in interface MutableSortedSet<T>take in interface SortedSetIterable<T>public MutableSortedSet<T> drop(int count)
drop in interface ReversibleIterable<T>drop in interface MutableSortedSet<T>drop in interface SortedSetIterable<T>public void reverseForEach(Procedure<? super T> procedure)
reverseForEach in interface ReversibleIterable<T>public void reverseForEachWithIndex(ObjectIntProcedure<? super T> procedure)
reverseForEachWithIndex in interface ReversibleIterable<T>public LazyIterable<T> asReversed()
asReversed in interface ReversibleIterable<T>public int detectLastIndex(Predicate<? super T> predicate)
detectLastIndex in interface ReversibleIterable<T>Copyright © 2004–2022. All rights reserved.