An immutable multiset whose elements are sorted.
Attributes
- A
Type of elements
- Companion:
- object
- Graph
- Supertypes
- trait SortedMultiSet[A]trait MultiSet[A]trait Iterable[A]trait MultiSet[A]trait Equalstrait Iterable[A]trait IterableFactoryDefaults[A, Iterable]trait IterableOnce[A]class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Attributes
- elem
the element to remove
- Returns:
an immutable sorted multiset containing all the elements of this multiset and one occurrence less of
elem
Attributes
- elem
the element to add
- Returns:
an immutable sorted multiset containing all the elements of this multiset and one more occurrence of
elem
Attributes
- Returns:
All the elements contained in this multiset and their number of occurrences
Attributes
- Definition Classes
Attributes
- Definition Classes
- SortedMultiSet -> IterableOps
Inherited methods
Alias for incl
Attributes
- Inherited from:
- IterableOps
Alias for excl
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- B
the element type of the returned collection
- pf
the partial function which filters and map this sorted multiset
- Returns:
a new collection resulting from applying the given partial function
pf
to each element on which it is defined and collecting the results- Inherited from:
- SortedMultiSetOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- B
the element type of the returned collection
- pf
the partial function which filters and map this sorted multiset
- Returns:
a new collection resulting from applying the given partial function
pf
to each group of occurrences on which it is defined and collecting the results- Inherited from:
- SortedMultiSetOps
Attributes
- Inherited from:
- MultiSetOps
Attributes
- Inherited from:
- IterableOps
Attributes
- that
the collection of elements to add to this multiset
- Returns:
a new multiset summing the occurrences of this multiset with the elements of
that
- Inherited from:
- MultiSetOps
Attributes
- that
the collection of occurrences to add to this multiset
- Returns:
a new multiset summing the occurrences of this multiset and
that
collection of occurrences- Inherited from:
- MultiSetOps
Attributes
- elem
the element to test
- Returns:
Whether
elem
has at least one occurrence in this multiset or not- Inherited from:
- MultiSetOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation.
Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that
objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int.
(o1.hashCode.equals(o2.hashCode)
).
Attributes
- that
the object to compare against this object for equality.
- Returns:
true
if the receiver object is equivalent to the argument;false
otherwise.- Definition Classes
- Inherited from:
- MultiSet
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Returns:
a new multiset containing only the occurrences of elements of this multiset that satisfy the given predicate
p
- Inherited from:
- MultiSetOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- SortedMultiSetOps
Attributes
- Inherited from:
- IterableOps
Builds a new collection by applying a function to all elements of this sorted multiset and using the elements of the resulting collections.
Builds a new collection by applying a function to all elements of this sorted multiset and using the elements of the resulting collections.
Attributes
- B
the element type of the returned collection.
- f
the function to apply to each element.
- Returns:
a new collection resulting from applying the given function
f
to each element of this sorted multiset and concatenating the results.- Inherited from:
- SortedMultiSetOps
Builds a new collection by applying a function to all pairs of element and its number of occurrences of this sorted multiset and using the elements of the resulting collections.
Builds a new collection by applying a function to all pairs of element and its number of occurrences of this sorted multiset and using the elements of the resulting collections.
Attributes
- B
the element type of the returned collection.
- f
the function to apply to each element.
- Returns:
a new collection resulting from applying the given function
f
to each pair of element and its number of occurrences of this sorted multiset and concatenating the results.- Inherited from:
- SortedMultiSetOps
Attributes
- B
the element type of the returned collection
- f
the function to apply
- Returns:
a new multiset resulting from applying the given function
f
to each pair of element and its number of occurrences of this multiset and concatenating the results- Inherited from:
- MultiSetOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- elem
Element to look up
- Returns:
The number of occurrences of
elem
in this multiset- Inherited from:
- MultiSetOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Calculate a hash code value for the object.
Calculate a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet
not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
.
However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have
identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure
to verify that the behavior is consistent with the equals
method.
Attributes
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MultiSetOps
Creates an iterator that contains all values from this collection
greater than or equal to start
according to the ordering of
this collection. x.iteratorFrom(y) is equivalent to but will usually
be more efficient than x.from(y).iterator
Creates an iterator that contains all values from this collection
greater than or equal to start
according to the ordering of
this collection. x.iteratorFrom(y) is equivalent to but will usually
be more efficient than x.from(y).iterator
Attributes
- start
The lower-bound (inclusive) of the iterator
- Inherited from:
- SortedMultiSetOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- SortedMultiSetOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
Attributes
- Inherited from:
- IterableOps
Builds a new sorted multiset by applying a function to all elements of this sorted multiset.
Builds a new sorted multiset by applying a function to all elements of this sorted multiset.
Attributes
- B
the element type of the returned collection.
- f
the function to apply to each element.
- Returns:
a new collection resulting from applying the given function
f
to each element of this sorted multiset and collecting the results.- Inherited from:
- SortedMultiSetOps
Builds a new sorted multiset by applying a function to all pairs of element and its number of occurrences.
Builds a new sorted multiset by applying a function to all pairs of element and its number of occurrences.
Attributes
- B
the element type of the returned collection
- f
the function to apply
- Returns:
a new collection resulting from applying the given function
f
to each pair of element and its number of occurrences of this sorted multiset and collecting the results.- Inherited from:
- SortedMultiSetOps
Attributes
- B
the element type of the returned collection
- f
the function to apply
- Returns:
a new multiset resulting from applying the given function
f
to each pair of element and its number of occurrences of this multiset and collecting the results- Inherited from:
- MultiSetOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- SortedOps
Attributes
- Inherited from:
- SortedOps
Attributes
- Inherited from:
- SortedMultiSetOps
Attributes
- Inherited from:
- SortedOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns:
a string representation of the object.
- Definition Classes
- Iterable -> Any
- Inherited from:
- Iterable
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
this
sorted multiset upcasted to an unsorted multiset
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Returns a sorted multiset formed from this sorted multiset and another iterable collection, by combining corresponding elements in pairs.
Returns a sorted multiset formed from this sorted multiset and another iterable collection, by combining corresponding elements in pairs.
Attributes
- B
the type of the second half of the returned pairs
- ev
The ordering instance for type
B
- that
The iterable providing the second half of each result pair
- Returns:
a new sorted multiset containing pairs consisting of corresponding elements of this sorted multiset and
that
. The length of the returned collection is the minimum of the lengths ofthis
andthat
- Inherited from:
- SortedMultiSetOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- SortedMultiSetOps
Deprecated and Inherited methods
Attributes
- Deprecated
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable- Inherited from:
- IterableOps
Attributes
- Deprecated
[Since version 2.13.0]
Use foldLeft instead of /:- Inherited from:
- IterableOnceOps
Attributes
- Deprecated
[Since version 2.13.0]
Use foldRight instead of :\\- Inherited from:
- IterableOnceOps
Attributes
- Deprecated
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.- Inherited from:
- IterableOnceOps
Attributes
- Deprecated
[Since version 2.13.0]
Use iterableFactory instead- Inherited from:
- IterableOps
Attributes
- Deprecated
[Since version 2.13.0]
Use ordering.compare instead- Inherited from:
- SortedOps
Attributes
- Deprecated
[Since version 2.13.0]
Use `dest ++= coll` instead- Inherited from:
- IterableOnceOps
Attributes
- Deprecated
[Since version 2.13.0]
Use rangeFrom- Inherited from:
- SortedOps
Attributes
- Deprecated
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)- Inherited from:
- IterableOnceOps
Attributes
- Deprecated
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside- Inherited from:
- IterableOps
Attributes
- Deprecated
[Since version 2.13.0]
Iterable.seq always returns the iterable itself- Inherited from:
- Iterable
Attributes
- Deprecated
[Since version 2.13.0]
Use rangeTo- Inherited from:
- SortedOps
Attributes
- Deprecated
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections- Inherited from:
- Iterable
Attributes
- Deprecated
[Since version 2.13.0]
Use .iterator instead of .toIterator- Inherited from:
- IterableOnceOps
Attributes
- Deprecated
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream- Inherited from:
- IterableOnceOps
Attributes
- Deprecated
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections- Inherited from:
- IterableOps
Attributes
- Deprecated
[Since version 2.13.0]
Use rangeUntil- Inherited from:
- SortedOps
Attributes
- Deprecated
[Since version 2.13.0]
Use .view.slice(from, until) instead of .view(from, until)- Inherited from:
- IterableOps