public class TreeSortedSet<T> extends AbstractMutableCollection<T> implements Externalizable, MutableSortedSet<T>
| Constructor and Description |
|---|
TreeSortedSet() |
TreeSortedSet(Comparator<? super T> comparator) |
TreeSortedSet(Comparator<? super T> comparator,
Iterable<? extends T> iterable) |
TreeSortedSet(Iterable<? extends T> iterable) |
TreeSortedSet(SortedSet<T> set) |
addAllIterable, chunk, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, reduce, removeAll, removeIf, removeIfWith, retainAll, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, asLazy, collect, collectIf, collectWith, containsAllArguments, containsAllIterable, count, countWith, detect, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, forEach, forEachWith, forEachWithIndex, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, 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, 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, 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, forEachWithspliteratorparallelStream, removeIf, streampublic TreeSortedSet()
public TreeSortedSet(Comparator<? super T> comparator)
public TreeSortedSet(Comparator<? super T> comparator, Iterable<? extends T> iterable)
public static <T> TreeSortedSet<T> newSet()
public static <T> TreeSortedSet<T> newSet(Comparator<? super T> comparator)
public static <T> TreeSortedSet<T> newSet(Iterable<? extends T> source)
public static <T> TreeSortedSet<T> newSet(Comparator<? super T> comparator, Iterable<? extends T> iterable)
public static <T> TreeSortedSet<T> newSetWith(T... elements)
public static <T> TreeSortedSet<T> newSetWith(Comparator<? super T> comparator, T... elements)
public 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 ParallelSortedSetIterable<T> asParallel(ExecutorService executorService, int batchSize)
asParallel in interface SetIterable<T>asParallel in interface SortedSetIterable<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 boolean add(T element)
add in interface Collection<T>add in interface Set<T>add in class AbstractMutableCollection<T>public boolean remove(Object element)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractMutableCollection<T>public boolean addAll(Collection<? extends T> collection)
addAll in interface Collection<T>addAll in interface Set<T>addAll in class AbstractMutableCollection<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in interface RichIterable<T>contains in class AbstractRichIterable<T>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<T>containsAll in interface Set<T>containsAll in interface RichIterable<T>containsAll in class AbstractRichIterable<T>public void clear()
public TreeSortedSet<T> clone()
clone in interface MutableSortedSet<T>clone in class Objectpublic boolean equals(Object object)
public int hashCode()
public TreeSortedSet<T> with(T element)
with in interface MutableCollection<T>with in interface MutableSetIterable<T>with in interface MutableSortedSet<T>public TreeSortedSet<T> with(T element1, T element2)
public TreeSortedSet<T> with(T element1, T element2, T element3)
public TreeSortedSet<T> with(T... elements)
public TreeSortedSet<T> without(T element)
without in interface MutableCollection<T>without in interface MutableSetIterable<T>without in interface MutableSortedSet<T>public TreeSortedSet<T> withAll(Iterable<? extends T> elements)
withAll in interface MutableCollection<T>withAll in interface MutableSetIterable<T>withAll in interface MutableSortedSet<T>public TreeSortedSet<T> withoutAll(Iterable<? extends T> elements)
withoutAll in interface MutableCollection<T>withoutAll in interface MutableSetIterable<T>withoutAll in interface MutableSortedSet<T>public TreeSortedSet<T> newEmpty()
newEmpty in interface MutableCollection<T>newEmpty in interface MutableSortedSet<T>public TreeSortedSet<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>public void each(Procedure<? super T> procedure)
each in interface RichIterable<T>public TreeSortedSet<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>public TreeSortedSet<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>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>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>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 <S> TreeSortedSet<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>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>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> 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>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>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>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>public <P> TreeSortedSet<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>public <P> TreeSortedSet<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>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>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>public TreeSortedSet<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>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 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 boolean removeAllIterable(Iterable<?> iterable)
removeAllIterable in interface MutableCollection<T>removeAllIterable in class AbstractMutableCollection<T>public Comparator<? super T> comparator()
comparator in interface SortedSet<T>comparator in interface SortedIterable<T>comparator in interface SortedSetIterable<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>public T getLast()
getLast in interface OrderedIterable<T>getLast in interface RichIterable<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 TreeSortedSet<T> union(SetIterable<? extends T> set)
union in interface SetIterable<T>union in interface MutableSortedSet<T>union in interface SortedSetIterable<T>public TreeSortedSet<T> intersect(SetIterable<? extends T> set)
intersect in interface SetIterable<T>intersect in interface MutableSortedSet<T>intersect in interface SortedSetIterable<T>public TreeSortedSet<T> difference(SetIterable<? extends T> subtrahendSet)
difference in interface SetIterable<T>difference in interface MutableSortedSet<T>difference in interface SortedSetIterable<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 unionInto(SetIterable<? extends T> set, R targetSet)
unionInto in interface SetIterable<T>public <R extends Set<T>> R intersectInto(SetIterable<? extends T> set, R targetSet)
intersectInto in interface SetIterable<T>public <R extends Set<T>> R differenceInto(SetIterable<? extends T> subtrahendSet, R targetSet)
differenceInto in interface SetIterable<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 int size()
size in interface Collection<T>size in interface Set<T>size in interface RichIterable<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>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic int compareTo(SortedSetIterable<T> otherSet)
compareTo in interface Comparable<SortedSetIterable<T>>Copyright © 2004–2022. All rights reserved.