A multidict is a map that can associate a set of values to a given key.
Type parameters
- K
-
the type of keys
- V
-
the type of values
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Equalstrait Iterable[(K, V)]trait IterableFactoryDefaults[(K, V), Iterable]trait IterableOnce[(K, V)]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Members list
Value members
Concrete methods
Attributes
- Definition Classes
-
IterableFactoryDefaults -> 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
-
Equals -> Any
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
- Returns
-
the hash code value for this object.
- Definition Classes
-
Any
Attributes
- Definition Classes
-
IterableOps
Inherited methods
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
MultiDictOps -> IterableOnceOps
- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Type parameters
- L
-
new type of keys
- W
-
new type of values
Value parameters
- pf
-
transformation to apply
Attributes
- Returns
-
a multidict that contains all the entries of
this
multidict after they have been successfully transformed by the given partial functionpf
- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Type parameters
- L
-
the new type of keys
- W
-
the new type of values
Value parameters
- pf
-
the partial function to apply to each set of values
Attributes
- Returns
-
a multidict that contains all the entries of
this
multidict, after they have been successfully transformed by the given partial function - Inherited from:
- MultiDictOps
Concatenate the entries given in that
iterable to this
multidict
Concatenate the entries given in that
iterable to this
multidict
Attributes
- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOps
Value parameters
- that
-
the collection of values to add to this multidict
Attributes
- Returns
-
a new multidict concatenating the values of this multidict and
that
collection of values - Inherited from:
- MultiDictOps
Value parameters
- kv
-
the binding to test
Attributes
- Returns
-
Whether the binding
kv
is contained in this multidict or not - Inherited from:
- MultiDictOps
Value parameters
- key
-
the key to test
Attributes
- Returns
-
Whether
key
has at least one occurrence in this multidict or not - Inherited from:
- MultiDictOps
Value parameters
- value
-
the value to test
Attributes
- Returns
-
Whether at least one key is associated to the given
value
- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Returns
-
Whether there exists a value associated with the given
key
that satisfies the given predicatep
- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Returns
-
a multidict that contains all the entries of this multidict that satisfy the predicate
p
- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOnceOps
Type parameters
- L
-
new type of keys
- W
-
new type of values
Value parameters
- f
-
transformation function
Attributes
- Returns
-
a multidict that contains all the entries of
this
multidict, transformed by the functionf
and concatenated - Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOps
Type parameters
- L
-
the new type of keys
- W
-
the type of values of the returned multidict
Value parameters
- f
-
the function to apply
Attributes
- Returns
-
a new multidict resulting from applying the given function
f
to each group of values of this multidict and concatenating the results - Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Value parameters
- key
-
key to look up
Attributes
- Returns
-
The set of values associated with the given
key
, or the empty set if there is no such association - Inherited from:
- MultiDictOps
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:
- Iterable
Attributes
- Inherited from:
- MultiDictOps
Attributes
- Returns
-
the set of keys
- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
Type parameters
- L
-
new type of keys
- W
-
new type of values
Value parameters
- f
-
transformation function
Attributes
- Returns
-
a multidict that contains all the entries of
this
multidict, transformed by the functionf
- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOps
Type parameters
- L
-
the new type of keys
- W
-
the type of values of the returned multidict
Value parameters
- f
-
the function to apply
Attributes
- Returns
-
a new multidict resulting from applying the given function
f
to each group of values of this multidict and collecting the results - Inherited from:
- MultiDictOps
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:
- 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
- Definition Classes
-
IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- IterableOnceOps
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
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Returns
-
all the values contained in this multidict
- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Inherited and Abstract methods
Attributes
- Returns
-
All the elements contained in this multidict, grouped by key
- Inherited from:
- MultiDictOps
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]
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 `dest ++= coll` instead - Inherited from:
- IterableOnceOps
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.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 .view.slice(from, until) instead of .view(from, until) - Inherited from:
- IterableOps