| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private TreeSet |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(T element)
Overrides org. Implements java. Adds the specified element to this set if it is not already present (optional operation). |
| public boolean | addAll(Collection<? extends T> collection)
Overrides org. Implements java. Adds all of the elements in the specified collection to this set if they're not already present (optional operation). |
| public ParallelSortedSetIterable | asParallel(ExecutorService executorService, int batchSize)
Implements org. Returns a parallel iterable of this SortedSetIterable. |
| public MutableSortedSet | asSynchronized()
Implements org. Returns a synchronized wrapper backed by this collection. |
| public MutableSortedSet | asUnmodifiable()
Implements org. Returns an unmodifiable view of the set. |
| public <B> LazyIterable | cartesianProduct(SetIterable<B> set)
Implements org. Returns the set whose members are all possible ordered pairs (a, b) where a is a member of |
| public void | clear()
Implements java. Removes all of the elements from this set (optional operation). |
| public TreeSortedSet | clone()
Overrides java. Implements org. Creates and returns a copy of this object. |
| public <V> MutableList | collect(Function<? super T, ? extends V> function)
Implements org. Returns a new MutableCollection with the results of applying the specified function to each element of the source collection. |
| public MutableBooleanList | collectBoolean(BooleanFunction<? super T> booleanFunction)
Overrides default org. Implements org. Returns a new primitive |
| public MutableByteList | collectByte(ByteFunction<? super T> byteFunction)
Overrides default org. Implements org. Returns a new primitive |
| public MutableCharList | collectChar(CharFunction<? super T> charFunction)
Overrides default org. Implements org. Returns a new primitive |
| public MutableDoubleList | collectDouble(DoubleFunction<? super T> doubleFunction)
Overrides default org. Implements org. Returns a new primitive |
| public MutableFloatList | collectFloat(FloatFunction<? super T> floatFunction)
Overrides default org. Implements org. Returns a new primitive |
| public <V> MutableList | collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function)
Implements org. Returns a new MutableCollection with the results of applying the specified function to each element of the source collection, but only for elements that evaluate to true for the specified predicate. |
| public MutableIntList | collectInt(IntFunction<? super T> intFunction)
Overrides default org. Implements org. Returns a new primitive |
| public MutableLongList | collectLong(LongFunction<? super T> longFunction)
Overrides default org. Implements org. Returns a new primitive |
| public MutableShortList | collectShort(ShortFunction<? super T> shortFunction)
Overrides default org. Implements org. Returns a new primitive |
| public <P, V> MutableList | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
Implements org. Same as |
| public Comparator | comparator()
Implements org. Returns the comparator used to order the elements in this set, or null if this set uses the natural ordering of its elements. |
| public int | compareTo(SortedSetIterable<T> otherSet)
Implements java. Compares this object with the specified object for order. |
| public boolean | contains(Object o)
Overrides org. Implements org. Returns |
| public boolean | containsAll(Collection<?> collection)
Overrides org. Implements org. Returns |
| public <S> boolean | corresponds(OrderedIterable<S> other, Predicate2<? super T, ? super S> predicate)
Implements org. Returns true if both OrderedIterables have the same length
and |
| public int | detectIndex(Predicate<? super T> predicate)
Implements org. Returns the index of the first element of the |
| public int | detectLastIndex(Predicate<? super T> predicate)
Implements org. Returns the index of the last element of the |
| public TreeSortedSet | difference(SetIterable<? extends T> subtrahendSet)
Implements org. Returns the set of all members of |
| public <R extends Set | differenceInto(SetIterable<? extends T> subtrahendSet, R targetSet)
Implements org. Same as |
| public MutableSortedSet | distinct()
Implements org. Returns a new |
| public MutableSortedSet | drop(int count)
Implements org. Returns an iterable after skipping the first |
| public MutableSortedSet | dropWhile(Predicate<? super T> predicate)
Implements org. Returns the final elements that do not satisfy the Predicate. |
| public void | each(Procedure<? super T> procedure)
Implements org. The procedure is executed for each element in the iterable. |
| public boolean | equals(Object object)
Overrides java. Implements org. Follows the same general contract as |
| public T | first()
Implements java. Returns the first (lowest) element currently in this set. |
| public <V> MutableList | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Implements org.
|
| public void | forEach(int fromIndex, int toIndex, Procedure<? super T> procedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public void | forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public T | getFirst()
Overrides default org. Implements org. This default override exists because java.util.SortedSet added a default getFirst() method in Java 21. |
| public T | getLast()
Overrides default org. Implements org. This default override exists because java.util.SortedSet added a default getLast() method in Java 21. |
| public <V> TreeSortedSetMultimap | groupBy(Function<? super T, ? extends V> function)
Implements org. For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable. |
| public <V> TreeSortedSetMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Implements org. Similar to |
| public int | hashCode()
Overrides java. Implements org. Follows the same general contract as |
| public MutableSortedSet | headSet(T toElement)
Implements org. Returns a view of the portion of this set whose elements are
strictly less than |
| public int | indexOf(Object object)
Overrides default org. Returns the index of the first occurrence of the specified item in this iterable, or -1 if this iterable does not contain the item. |
| public TreeSortedSet | intersect(SetIterable<? extends T> set)
Implements org. Returns the set of all objects that are members of both |
| public <R extends Set | intersectInto(SetIterable<? extends T> set, R targetSet)
Implements org. Same as |
| public boolean | isProperSubsetOf(SetIterable<? extends T> candidateSuperset)
Implements org. Returns true if all the members of |
| public boolean | isSubsetOf(SetIterable<? extends T> candidateSuperset)
Implements org. Returns true if all the members of |
| public Iterator | iterator()
Implements java. Returns an iterator over the elements in this set. |
| public T | last()
Implements java. Returns the last (highest) element currently in this set. |
| public TreeSortedSet | newEmpty()
Implements org. Creates a new empty mutable version of the same collection type. |
| public static <T> TreeSortedSet | |
| public static <T> TreeSortedSet | |
| public static <T> TreeSortedSet | |
| public static <T> TreeSortedSet | |
| public static <T> TreeSortedSet | |
| public static <T> TreeSortedSet | |
| public PartitionMutableSortedSet | partition(Predicate<? super T> predicate)
Implements org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public PartitionMutableSortedSet | partitionWhile(Predicate<? super T> predicate)
Implements org. Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements. |
| public <P> PartitionMutableSortedSet | partitionWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public MutableSortedSet | powerSet()
Implements org. Returns the set whose members are all possible subsets of |
| public void | readExternal(ObjectInput in)
Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public TreeSortedSet | reject(Predicate<? super T> predicate)
Implements org. Returns a MutableCollection with all elements that evaluate to false for the specified predicate. |
| public <P> TreeSortedSet | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Returns a MutableCollection with all elements that evaluate to false for the specified predicate2 and parameter. |
| public boolean | remove(Object element)
Overrides org. Implements java. Removes the specified element from this set if it is present (optional operation). |
| public boolean | |
| public void | reverseForEach(Procedure<? super T> procedure)
Overrides default org. Evaluates the procedure for each element of the list iterating in reverse order. |
| public void | reverseForEachWithIndex(ObjectIntProcedure<? super T> procedure)
Overrides default org. Evaluates the procedure for each element and it's index in reverse order. |
| public TreeSortedSet | select(Predicate<? super T> predicate)
Implements org. Returns a MutableCollection with all elements that evaluate to true for the specified predicate. |
| public <S> TreeSortedSet | selectInstancesOf(Class<S> clazz)
Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P> TreeSortedSet | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Returns a MutableCollection with all elements that evaluate to true for the specified predicate2 and parameter. |
| public int | size()
Implements org. Returns the number of elements in this set (its cardinality). |
| public MutableSortedSet | subSet(T fromElement, T toElement)
Implements org. Returns a view of the portion of this set whose elements range
from |
| public MutableSortedSet | symmetricDifference(SetIterable<? extends T> setB)
Implements org. Returns the set of all objects that are a member of exactly one of |
| public <R extends Set | symmetricDifferenceInto(SetIterable<? extends T> set, R targetSet)
Implements org. Same as |
| public MutableSortedSet | tailSet(T fromElement)
Implements org. Returns a view of the portion of this set whose elements are
greater than or equal to |
| public MutableSortedSet | take(int count)
Implements org. Returns the first |
| public MutableSortedSet | takeWhile(Predicate<? super T> predicate)
Implements org. Returns the initial elements that satisfy the Predicate. |
| public TreeSortedSet | tap(Procedure<? super T> procedure)
Implements org. Executes the Procedure for each element in the iterable and returns |
| public ImmutableSortedSet | toImmutable()
Implements org. Returns an immutable copy of this set. |
| public MutableSortedSet | toReversed()
Implements org. Returns a new ReversibleIterable in reverse order. |
| public TreeSortedSet | union(SetIterable<? extends T> set)
Implements org. Returns the set of all objects that are a member of |
| public <R extends Set | unionInto(SetIterable<? extends T> set, R targetSet)
Implements org. Same as |
| public TreeSortedSet | with(T element)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to add elements to their existing elements. |
| public TreeSortedSet | |
| public TreeSortedSet | |
| public TreeSortedSet | with(T... elements)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to add elements to their existing elements. |
| public TreeSortedSet | withAll(Iterable<? extends T> elements)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to add multiple elements to their existing elements. |
| public TreeSortedSet | without(T element)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to remove elements from their existing elements. |
| public TreeSortedSet | withoutAll(Iterable<? extends T> elements)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to remove multiple elements from their existing elements. |
| public void | writeExternal(ObjectOutput out)
Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| public <S> MutableList | zip(Iterable<S> that)
Implements org. Returns a |
| public TreeSortedSet | zipWithIndex()
Implements org. Zips this |