A mutable multiset whose elements are sorted according to a given ordering.
Type parameters
- A
-
Type of elements
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait SortedMultiSet[A]trait MultiSet[A]trait Shrinkable[A]trait Growable[A]trait Clearabletrait MultiSet[A]trait Equalstrait Iterable[A]trait IterableFactoryDefaults[A, Iterable]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Attributes
- Returns
-
All the elements contained in this multiset and their number of occurrences
Attributes
- Definition Classes
Attributes
- Definition Classes
-
SortedMultiSet -> IterableOps
Inherited methods
Attributes
- Inherited from:
- Growable
Attributes
- Inherited from:
- Growable
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Growable
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Type parameters
- B
-
the element type of the returned collection
Value parameters
- pf
-
the partial function which filters and map this sorted multiset
Attributes
- 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
- Inherited from:
- MultiSetOps
Type parameters
- B
-
the element type of the returned collection
Value parameters
- pf
-
the partial function which filters and map this sorted multiset
Attributes
- 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
Value parameters
- that
-
the collection of elements to add to this multiset
Attributes
- Returns
-
a new multiset summing the occurrences of this multiset with the elements of
that
- Inherited from:
- MultiSetOps
Value parameters
- that
-
the collection of occurrences to add to this multiset
Attributes
- Returns
-
a new multiset summing the occurrences of this multiset and
that
collection of occurrences - Inherited from:
- MultiSetOps
Value parameters
- elem
-
the element to test
Attributes
- 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)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- 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
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.
Type parameters
- B
-
the element type of the returned collection.
Value parameters
- f
-
the function to apply to each element.
Attributes
- 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
Type parameters
- B
-
the element type of the returned collection
Value parameters
- f
-
the function to apply
Attributes
- 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
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.
Type parameters
- B
-
the element type of the returned collection.
Value parameters
- f
-
the function to apply to each element.
Attributes
- 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
- 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:
- MultiSetOps
Attributes
- Inherited from:
- MultiSetOps
Value parameters
- elem
-
Element to look up
Attributes
- 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
Calculates a hash code value for the object.
Calculates 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
Value parameters
- start
-
The lower-bound (inclusive) of the iterator
Attributes
- Inherited from:
- SortedMultiSetOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- SortedMultiSetOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
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.
Type parameters
- B
-
the element type of the returned collection.
Value parameters
- f
-
the function to apply to each element.
Attributes
- 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
Type parameters
- B
-
the element type of the returned collection
Value parameters
- f
-
the function to apply
Attributes
- 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
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.
Type parameters
- B
-
the element type of the returned collection
Value parameters
- f
-
the function to apply
Attributes
- 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
- 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:
- 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:
- Shrinkable
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
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.
Type parameters
- B
-
the type of the second half of the returned pairs
Value parameters
- ev
-
The ordering instance for type
B
- that
-
The iterable providing the second half of each result pair
Attributes
- 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 `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Growable
Attributes
- Deprecated
-
[Since version 2.13.3]
Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Shrinkable
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]
For sequential collections, prefer `foldLeft(z)(seqop)`. For parallel collections, use `ParIterableLike#aggregate`. - 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