trait MapWithIndifferentAccess[+B] extends Map[String, B]
Inspired by Rails' MapWithIndifferentAccess, allows the substitution of symbols for strings as map keys. Note that the map is still keyed with strings; symbols are stored in permgen, so symbol keys maps should not be used for maps with arbitrary keys. There is no performance gain using symbols. It is here to make our Rubyists feel more at home.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- MapWithIndifferentAccess
- Map
- MapLike
- Subtractable
- PartialFunction
- Function1
- GenMap
- GenMapLike
- Iterable
- IterableLike
- Equals
- GenIterable
- GenIterableLike
- Traversable
- GenTraversable
- GenericTraversableTemplate
- TraversableLike
- GenTraversableLike
- Parallelizable
- TraversableOnce
- GenTraversableOnce
- FilterMonadic
- HasNewBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
class
DefaultKeySet extends AbstractSet[K] with Set[K] with Serializable
- Attributes
- protected
- Definition Classes
- MapLike
-
class
DefaultValuesIterable extends AbstractIterable[V] with Iterable[V] with Serializable
- Attributes
- protected
- Definition Classes
- MapLike
-
class
FilteredKeys extends AbstractMap[K, V] with DefaultMap[K, V]
- Attributes
- protected
- Definition Classes
- MapLike
-
class
MappedValues[W] extends AbstractMap[K, W] with DefaultMap[K, W]
- Attributes
- protected
- Definition Classes
- MapLike
-
type
Self = Map[String, B]
- Attributes
- protected[this]
- Definition Classes
- TraversableLike
-
class
WithFilter extends FilterMonadic[A, Repr]
- Definition Classes
- TraversableLike
Abstract Value Members
-
abstract
def
+[V1 >: B](kv: (String, V1)): Map[String, V1]
- Definition Classes
- MapLike → GenMapLike
-
abstract
def
-(key: String): Map[String, B]
- Definition Classes
- MapLike → Subtractable → GenMapLike
-
abstract
def
get(key: String): Option[B]
- Definition Classes
- MapLike → GenMapLike
-
abstract
def
iterator: Iterator[(String, B)]
- Definition Classes
- MapLike → IterableLike → GenIterableLike
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+[V1 >: B](kv1: (String, V1), kv2: (String, V1), kvs: (String, V1)*): Map[String, V1]
- Definition Classes
- MapLike
-
def
++[V1 >: B](xs: GenTraversableOnce[(String, V1)]): Map[String, V1]
- Definition Classes
- MapLike
-
def
++[B >: (String, B), That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Map[String, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
++:[B >: (String, B), That](that: Traversable[B])(implicit bf: CanBuildFrom[Map[String, B], B, That]): That
- Definition Classes
- TraversableLike
-
def
++:[B >: (String, B), That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Map[String, B], B, That]): That
- Definition Classes
- TraversableLike
-
def
-(elem1: String, elem2: String, elems: String*): Map[String, B]
- Definition Classes
- Subtractable
-
def
--(xs: GenTraversableOnce[String]): Map[String, B]
- Definition Classes
- Subtractable
-
def
/:[B](z: B)(op: (B, (String, B)) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
:\[B](z: B)(op: ((String, B), B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- MapLike → TraversableOnce
-
def
addString(b: StringBuilder): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
aggregate[B](z: ⇒ B)(seqop: (B, (String, B)) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
andThen[C](k: (B) ⇒ C): PartialFunction[String, C]
- Definition Classes
- PartialFunction → Function1
- def apply(key: Symbol): B
-
def
apply(key: String): B
- Definition Classes
- MapLike → GenMapLike → Function1
-
def
applyOrElse[K1 <: String, V1 >: B](x: K1, default: (K1) ⇒ V1): V1
- Definition Classes
- MapLike → PartialFunction
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(that: Any): Boolean
- Definition Classes
- IterableLike → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
collect[B, That](pf: PartialFunction[(String, B), B])(implicit bf: CanBuildFrom[Map[String, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
collectFirst[B](pf: PartialFunction[(String, B), B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
companion: GenericCompanion[Iterable]
- Definition Classes
- Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
-
def
compose[A](g: (A) ⇒ String): (A) ⇒ B
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
contains(key: String): Boolean
- Definition Classes
- MapLike → GenMapLike
-
def
copyToArray[B >: (String, B)](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: (String, B)](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: (String, B)](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer[B >: (String, B)](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
count(p: ((String, B)) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
default(key: String): B
- Definition Classes
- MapLike → GenMapLike
-
def
drop(n: Int): Map[String, B]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
dropRight(n: Int): Map[String, B]
- Definition Classes
- IterableLike
-
def
dropWhile(p: ((String, B)) ⇒ Boolean): Map[String, B]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
empty: Map[String, B]
- Definition Classes
- Map → MapLike
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- GenMapLike → Equals → AnyRef → Any
-
def
exists(p: ((String, B)) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
filter(p: ((String, B)) ⇒ Boolean): Map[String, B]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
filterKeys(p: (String) ⇒ Boolean): Map[String, B]
- Definition Classes
- MapLike → GenMapLike
-
def
filterNot(p: ((String, B)) ⇒ Boolean): Map[String, B]
- Definition Classes
- MapLike → TraversableLike → GenTraversableLike
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(p: ((String, B)) ⇒ Boolean): Option[(String, B)]
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
flatMap[B, That](f: ((String, B)) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Map[String, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
flatten[B](implicit asTraversable: ((String, B)) ⇒ GenTraversableOnce[B]): Iterable[B]
- Definition Classes
- GenericTraversableTemplate
-
def
fold[A1 >: (String, B)](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, (String, B)) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: ((String, B), B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
forall(p: ((String, B)) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
foreach[U](f: ((String, B)) ⇒ U): Unit
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
-
def
genericBuilder[B]: Builder[B, Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
- def get(key: Symbol): Option[B]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def getOrElse[B1 >: B](key: Symbol, default: ⇒ B1): B1
-
def
getOrElse[V1 >: B](key: String, default: ⇒ V1): V1
- Definition Classes
- MapLike → GenMapLike
-
def
groupBy[K](f: ((String, B)) ⇒ K): Map[K, Map[String, B]]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
grouped(size: Int): Iterator[Map[String, B]]
- Definition Classes
- IterableLike
-
def
hasDefiniteSize: Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
hashCode(): Int
- Definition Classes
- GenMapLike → AnyRef → Any
-
def
head: (String, B)
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
headOption: Option[(String, B)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
init: Map[String, B]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
inits: Iterator[Map[String, B]]
- Definition Classes
- TraversableLike
-
def
isDefinedAt(key: String): Boolean
- Definition Classes
- MapLike → GenMapLike → PartialFunction
-
def
isEmpty: Boolean
- Definition Classes
- MapLike → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isTraversableAgain: Boolean
- Definition Classes
- TraversableLike → GenTraversableLike → GenTraversableOnce
-
def
keySet: Set[String]
- Definition Classes
- MapLike → GenMapLike
-
def
keys: Iterable[String]
- Definition Classes
- MapLike → GenMapLike
- Annotations
- @migration
- Migration
(Changed in version 2.8.0)
keys
returnsIterable[K]
rather thanIterator[K]
.
-
def
keysIterator: Iterator[String]
- Definition Classes
- MapLike → GenMapLike
-
def
last: (String, B)
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
lastOption: Option[(String, B)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
lift: (String) ⇒ Option[B]
- Definition Classes
- PartialFunction
-
def
map[B, That](f: ((String, B)) ⇒ B)(implicit bf: CanBuildFrom[Map[String, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
mapValues[W](f: (B) ⇒ W): Map[String, W]
- Definition Classes
- MapLike → GenMapLike
-
def
max[B >: (String, B)](implicit cmp: Ordering[B]): (String, B)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: ((String, B)) ⇒ B)(implicit cmp: Ordering[B]): (String, B)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
min[B >: (String, B)](implicit cmp: Ordering[B]): (String, B)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: ((String, B)) ⇒ B)(implicit cmp: Ordering[B]): (String, B)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString: String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(sep: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(start: String, sep: String, end: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newBuilder: Builder[(String, B), Map[String, B]]
- Attributes
- protected[this]
- Definition Classes
- MapLike → TraversableLike → HasNewBuilder
-
def
nonEmpty: Boolean
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
orElse[A1 <: String, B1 >: B](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- Definition Classes
- PartialFunction
-
def
par: ParMap[String, B]
- Definition Classes
- Parallelizable
-
def
parCombiner: Combiner[(String, B), ParMap[String, B]]
- Attributes
- protected[this]
- Definition Classes
- MapLike → TraversableLike → Parallelizable
-
def
partition(p: ((String, B)) ⇒ Boolean): (Map[String, B], Map[String, B])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
product[B >: (String, B)](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduce[A1 >: (String, B)](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceLeft[B >: (String, B)](op: (B, (String, B)) ⇒ B): B
- Definition Classes
- TraversableOnce
-
def
reduceLeftOption[B >: (String, B)](op: (B, (String, B)) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: (String, B)](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: (String, B)](op: ((String, B), B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: (String, B)](op: ((String, B), B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
repr: Map[String, B]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
reversed: List[(String, B)]
- Attributes
- protected[this]
- Definition Classes
- TraversableOnce
-
def
runWith[U](action: (B) ⇒ U): (String) ⇒ Boolean
- Definition Classes
- PartialFunction
-
def
sameElements[B >: (String, B)](that: GenIterable[B]): Boolean
- Definition Classes
- IterableLike → GenIterableLike
-
def
scan[B >: (String, B), That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Map[String, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanLeft[B, That](z: B)(op: (B, (String, B)) ⇒ B)(implicit bf: CanBuildFrom[Map[String, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanRight[B, That](z: B)(op: ((String, B), B) ⇒ B)(implicit bf: CanBuildFrom[Map[String, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
- Annotations
- @migration
- Migration
(Changed in version 2.9.0) The behavior of
scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
-
def
seq: Map[String, B]
- Definition Classes
- Map → GenMap → GenMapLike → Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
-
def
size: Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
sizeHintIfCheap: Int
- Attributes
- protected[scala.collection]
- Definition Classes
- GenTraversableOnce
-
def
slice(from: Int, until: Int): Map[String, B]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
sliding(size: Int, step: Int): Iterator[Map[String, B]]
- Definition Classes
- IterableLike
-
def
sliding(size: Int): Iterator[Map[String, B]]
- Definition Classes
- IterableLike
-
def
span(p: ((String, B)) ⇒ Boolean): (Map[String, B], Map[String, B])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
splitAt(n: Int): (Map[String, B], Map[String, B])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
stringPrefix: String
- Definition Classes
- MapLike → TraversableLike → GenTraversableLike
-
def
sum[B >: (String, B)](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: Map[String, B]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
tails: Iterator[Map[String, B]]
- Definition Classes
- TraversableLike
-
def
take(n: Int): Map[String, B]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
takeRight(n: Int): Map[String, B]
- Definition Classes
- IterableLike
-
def
takeWhile(p: ((String, B)) ⇒ Boolean): Map[String, B]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
thisCollection: Iterable[(String, B)]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (String, B), Col[(String, B)]]): Col[(String, B)]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
toArray[B >: (String, B)](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toBuffer[E >: (String, B)]: Buffer[E]
- Definition Classes
- MapLike → TraversableOnce → GenTraversableOnce
-
def
toCollection(repr: Map[String, B]): Iterable[(String, B)]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
toIndexedSeq: IndexedSeq[(String, B)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterable: Iterable[(String, B)]
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
toIterator: Iterator[(String, B)]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toList: List[(String, B)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[(String, B), (T, U)]): Map[T, U]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSeq: Seq[(String, B)]
- Definition Classes
- MapLike → TraversableOnce → GenTraversableOnce
-
def
toSet[B >: (String, B)]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: Stream[(String, B)]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
-
def
toString(): String
- Definition Classes
- MapLike → TraversableLike → Function1 → AnyRef → Any
-
def
toTraversable: Traversable[(String, B)]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toVector: Vector[(String, B)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
transpose[B](implicit asTraversable: ((String, B)) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
- Annotations
- @migration
- Migration
(Changed in version 2.9.0)
transpose
throws anIllegalArgumentException
if collections are not uniformly sized.
-
def
unzip[A1, A2](implicit asPair: ((String, B)) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
- Definition Classes
- GenericTraversableTemplate
-
def
unzip3[A1, A2, A3](implicit asTriple: ((String, B)) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- Definition Classes
- GenericTraversableTemplate
-
def
updated[V1 >: B](key: String, value: V1): Map[String, V1]
- Definition Classes
- MapLike
-
def
values: Iterable[B]
- Definition Classes
- MapLike → GenMapLike
- Annotations
- @migration
- Migration
(Changed in version 2.8.0)
values
returnsIterable[V]
rather thanIterator[V]
.
-
def
valuesIterator: Iterator[B]
- Definition Classes
- MapLike → GenMapLike
-
def
view(from: Int, until: Int): IterableView[(String, B), Map[String, B]]
- Definition Classes
- IterableLike → TraversableLike
-
def
view: IterableView[(String, B), Map[String, B]]
- Definition Classes
- IterableLike → TraversableLike
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withFilter(p: ((String, B)) ⇒ Boolean): FilterMonadic[(String, B), Map[String, B]]
- Definition Classes
- TraversableLike → FilterMonadic
-
def
zip[A1 >: (String, B), B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Map[String, B], (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipAll[B, A1 >: (String, B), That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Map[String, B], (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipWithIndex[A1 >: (String, B), That](implicit bf: CanBuildFrom[Map[String, B], (A1, Int), That]): That
- Definition Classes
- IterableLike → GenIterableLike