A multidict is a map that can associate a set of values to a given key.
Attributes
- K
the type of keys
- V
the type of values
- Companion:
- object
- Graph
- Supertypes
- trait Equalstrait Iterable[(K, V)]trait IterableFactoryDefaults[(K, V), Iterable]trait IterableOnce[(K, V)]class Objecttrait Matchableclass Any
- 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
xof typeAny,x.equals(x)should returntrue. - It is symmetric: for any instances
xandyof typeAny,x.equals(y)should returntrueif and only ify.equals(x)returnstrue. - It is transitive: for any instances
x,y, andzof typeAnyifx.equals(y)returnstrueandy.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:
trueif the receiver object is equivalent to the argument;falseotherwise.- Definition Classes
- Equals -> Any
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
- 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
Attributes
- L
new type of keys
- W
new type of values
- pf
transformation to apply
- Returns:
a multidict that contains all the entries of
thismultidict after they have been successfully transformed by the given partial functionpf- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- L
the new type of keys
- W
the new type of values
- pf
the partial function to apply to each set of values
- Returns:
a multidict that contains all the entries of
thismultidict, 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
Attributes
- that
the collection of values to add to this multidict
- Returns:
a new multidict concatenating the values of this multidict and
thatcollection of values- Inherited from:
- MultiDictOps
Attributes
- kv
the binding to test
- Returns:
Whether the binding
kvis contained in this multidict or not- Inherited from:
- MultiDictOps
Attributes
- key
the key to test
- Returns:
Whether
keyhas at least one occurrence in this multidict or not- Inherited from:
- MultiDictOps
Attributes
- value
the value to test
- 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
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Returns:
Whether there exists a value associated with the given
keythat satisfies the given predicatep- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Returns:
a multidict that contains all the entries of this multidict that satisfy the predicate
p- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- L
new type of keys
- W
new type of values
- f
transformation function
- Returns:
a multidict that contains all the entries of
thismultidict, transformed by the functionfand concatenated- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOps
Attributes
- L
the new type of keys
- W
the type of values of the returned multidict
- f
the function to apply
- Returns:
a new multidict resulting from applying the given function
fto 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
Attributes
- key
key to look up
- 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:
- 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
Attributes
- L
new type of keys
- W
new type of values
- f
transformation function
- Returns:
a multidict that contains all the entries of
thismultidict, transformed by the functionf- Inherited from:
- MultiDictOps
Attributes
- Inherited from:
- IterableOps
Attributes
- L
the new type of keys
- W
the type of values of the returned multidict
- f
the function to apply
- Returns:
a new multidict resulting from applying the given function
fto 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
- Returns:
All the elements contained in this multidict, grouped by key
- Inherited from:
- MultiDictOps
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
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
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 `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