A class supporting filtered operations.
Computes the intersection between this set and another set.
The difference of this set and another set.
This method is an alias for intersect
.
Creates a new TreeSet
with the entry added.
Creates a new immutable tree set with additional elements.
Creates a new immutable tree set by adding all elements contained in another collection to this immutable tree set.
[use case] Concatenates this immutable tree set with the elements of a traversable collection.
Concatenates this immutable tree set with the elements of a traversable collection.
Creates a new TreeSet
with the entry removed.
Creates a new immutable tree set from this immutable tree set with some elements removed.
Creates a new immutable tree set from this immutable tree set by removing all elements of another collection.
Applies a binary operator to a start value and all elements of this immutable tree set, going left to right.
Applies a binary operator to all elements of this immutable tree set and a start value, going right to left.
Appends all elements of this immutable tree set to a string builder.
Appends all elements of this immutable tree set to a string builder using a separator string.
Appends all elements of this immutable tree set to a string builder using start, end, and separator strings.
(f andThen g)(x) == g(f(x))
Tests if some element is contained in this set.
Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind.
[use case] Builds a new collection by applying a partial function to all elements of this immutable tree set on which the function is defined.
Builds a new collection by applying a partial function to all elements of this immutable tree set on which the function is defined.
The factory companion object that builds instances of class immutable.
Comparison function that orders keys.
(f compose g)(x) == f(g(x))
Checks if this set contains element elem
.
[use case] Copies elements of this immutable tree set to an array.
Copies elements of this immutable tree set to an array.
[use case] Copies values of this immutable tree set to an array.
Copies values of this immutable tree set to an array.
[use case] Copies values of this immutable tree set to an array.
Copies values of this immutable tree set to an array.
Copies all elements of this immutable tree set to a buffer.
Counts the number of elements in the immutable tree set which satisfy a predicate.
Computes the difference of this set and another set.
Selects all elements except first n ones.
Selects all elements except last n ones.
Drops longest prefix of elements that satisfy a predicate.
A factory to create empty sets of the same type of keys.
Compares this set with another object for equality.
Tests whether a predicate holds for some of the elements of this immutable tree set.
Selects all elements of this immutable tree set which satisfy a predicate.
Selects all elements of this immutable tree set which do not satisfy a predicate.
Finds the first element of the immutable tree set satisfying a predicate, if any.
Returns the first key of the collection.
None
if iterable is empty.
[use case] Builds a new collection by applying a function to all elements of this immutable tree set and concatenating the results.
Builds a new collection by applying a function to all elements of this immutable tree set and concatenating the results.
[use case] Converts this immutable tree set of traversable collections into a immutable tree set in which all element collections are concatenated.
Converts this immutable tree set of traversable collections into a immutable tree set in which all element collections are concatenated.
Applies a binary operator to a start value and all elements of this immutable tree set, going left to right.
Applies a binary operator to all elements of this immutable tree set and a start value, going right to left.
Tests whether a predicate holds for all elements of this immutable tree set.
[use case] Applies a function f
to all elements of this immutable tree set.
Applies a function f
to all elements of this immutable tree set.
Creates a ranged projection of this collection with no upper-bound.
The generic builder that builds instances of immutable.
Partitions this immutable tree set into a map of immutable tree sets according to some discriminator function.
Partitions elements in fixed size immutable tree sets.
Tests whether this immutable tree set is known to have a finite size.
Returns a hash code value for the object.
Selects the first element of this immutable tree set.
Optionally selects the first element.
Selects all elements except the last.
A new TreeSet
with the entry added is returned,
assuming that elem is not in the TreeSet.
Computes the intersection between this set and another set.
Tests if this set is empty.
Tests whether this immutable tree set can be repeatedly traversed.
Creates a new iterator over all elements contained in this object.
return as a projection the set of keys in this collection
Selects the last element.
Returns the last key of the collection.
Optionally selects the last element.
[use case] Builds a new collection by applying a function to all elements of this immutable tree set.
Builds a new collection by applying a function to all elements of this immutable tree set.
[use case] Finds the largest element.
Finds the largest element.
[use case] Finds the smallest element.
Finds the smallest element.
Displays all elements of this immutable tree set in a string.
Displays all elements of this immutable tree set in a string using a separator string.
Displays all elements of this immutable tree set in a string using start, end, and separator strings.
Tests whether the immutable tree set is not empty.
Partitions this immutable tree set in two immutable tree sets according to a predicate.
[use case] Multiplies up the elements of this collection.
Multiplies up the elements of this collection.
returns a projection that can be used to call non-strict filter
,map
, and flatMap
methods that build projections
of the collection.
Creates a ranged projection of this collection with both a lower-bound and an upper-bound.
Creates a ranged projection of this collection.
Applies a binary operator to all elements of this immutable tree set, going left to right.
Optionally applies a binary operator to all elements of this immutable tree set, going left to right.
Applies a binary operator to all elements of this immutable tree set, going right to left.
Optionally applies a binary operator to all elements of this immutable tree set, going right to left.
The collection of type immutable tree set underlying this TraversableLike
object.
[use case] Checks if the other iterable collection contains the same elements in the same order as this immutable tree set.
Checks if the other iterable collection contains the same elements in the same order as this immutable tree set.
Produces a collection containing cummulative results of applying the operator going left to right.
Produces a collection containing cummulative results of applying the operator going right to left.
The size of this immutable tree set.
Selects an interval of elements.
Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped.
Splits this immutable tree set into a prefix/suffix pair according to a predicate.
Splits this immutable tree set into two at a given position.
Defines the prefix of this object's toString
representation.
Tests whether this set is a subset of another set.
[use case] Sums up the elements of this collection.
Sums up the elements of this collection.
Selects all elements except the first.
Selects first n elements.
Selects last n elements.
Takes longest prefix of elements that satisfy a predicate.
Create a range projection of this collection with no lower-bound.
[use case] Converts this immutable tree set to an array.
Converts this immutable tree set to an array.
Converts this immutable tree set to a mutable buffer.
Converts this immutable tree set to an indexed sequence.
Converts this immutable tree set to an iterable collection.
Returns an Iterator over the elements in this immutable tree set.
Converts this immutable tree set to a list.
Converts this immutable tree set to a map.
Converts this immutable tree set to a sequence.
Converts this immutable tree set to a set.
Converts this immutable tree set to a stream.
Converts this immutable tree set to a string.
Converts this immutable tree set to an unspecified Traversable.
Transposes this immutable tree set of traversable collections into a immutable tree set of immutable tree sets.
Computes the union between of set and another set.
Creates a ranged projection of this collection with no lower-bound.
Converts this immutable tree set of pairs into two collections of the first and second halfs of each pair.
Creates a non-strict view of a slice of this immutable tree set.
Creates a non-strict view of this immutable tree set.
Creates a non-strict filter of this immutable tree set.
[use case] Returns a immutable tree set formed from this immutable tree set and another iterable collection by combining corresponding elements in pairs.
Returns a immutable tree set formed from this immutable tree set and another iterable collection by combining corresponding elements in pairs.
[use case] Returns a immutable tree set formed from this immutable tree set and another iterable collection by combining corresponding elements in pairs.
Returns a immutable tree set formed from this immutable tree set and another iterable collection by combining corresponding elements in pairs.
[use case] Zips this immutable tree set with its indices.
Zips this immutable tree set with its indices.
Computes the union between this set and another set.
This class implements immutable sets using a tree.
the type of the elements contained in this tree set
version
2.0, 02/01/2007
since
1
authors:
Martin Odersky