final class StandardPriorityMap[A, B] extends PriorityMap[A, B] with PriorityMapLike[A, B, StandardPriorityMap[A, B]] with Serializable
Default implementation of immutable priority maps using a pair of maps.
- Alphabetic
- By Inheritance
- StandardPriorityMap
- Serializable
- Serializable
- PriorityMap
- PriorityMapLike
- Map
- MapLike
- Map
- MapLike
- Subtractable
- PartialFunction
- Function1
- GenMap
- GenMapLike
- Iterable
- Iterable
- IterableLike
- Equals
- GenIterable
- GenIterableLike
- Traversable
- Immutable
- Traversable
- GenTraversable
- GenericTraversableTemplate
- TraversableLike
- GenTraversableLike
- Parallelizable
- TraversableOnce
- GenTraversableOnce
- FilterMonadic
- HasNewBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StandardPriorityMap()(implicit ordering: Ordering[B])
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
ImmutableDefaultKeySet extends scala.collection.immutable.MapLike.DefaultKeySet with Set[K]
- Attributes
- protected
- Definition Classes
- MapLike
-
class
MappedValues[W] extends AbstractMap[K, W] with DefaultMap[K, W]
- Attributes
- protected
- Definition Classes
- MapLike
-
type
Self = StandardPriorityMap[A, B]
- Attributes
- protected[this]
- Definition Classes
- TraversableLike
-
class
WithFilter extends FilterMonadic[A, Repr]
- Definition Classes
- TraversableLike
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+[B1 >: B](kv: (A, B1)): Map[A, B1]
- Definition Classes
- StandardPriorityMap → Map → MapLike → MapLike → GenMapLike
-
def
+(kv: (A, B)): StandardPriorityMap[A, B]
Adds a key/value binding to this priority map.
Adds a key/value binding to this priority map.
- kv
the key/value pair
- returns
a new priority map with the new binding added to this priority map
- Definition Classes
- StandardPriorityMap → PriorityMapLike
-
def
+(kv1: (A, B), kv2: (A, B), kvs: (A, B)*): StandardPriorityMap[A, B]
Adds two or more key/value bindings to this priority map.
Adds two or more key/value bindings to this priority map.
- kv1
the first key/value pair to add
- kv2
the second key/value pair to add
- kvs
the remaining key/value pairs to add
- returns
a new priority map with the new bindings added to this map
- Definition Classes
- PriorityMapLike
-
def
+[V1 >: B](elem1: (A, V1), elem2: (A, V1), elems: (A, V1)*): Map[A, V1]
- Definition Classes
- MapLike → MapLike
-
def
++(kvs: GenTraversableOnce[(A, B)]): StandardPriorityMap[A, B]
Adds a number of key/value bindings to this priority map.
Adds a number of key/value bindings to this priority map.
- kvs
a traversable object consisting of key/value pairs
- returns
a new priority map with the new bindings added to this map
- Definition Classes
- PriorityMapLike
-
def
++[V1 >: B](xs: GenTraversableOnce[(A, V1)]): Map[A, V1]
- Definition Classes
- MapLike → MapLike
-
def
++[B >: (A, B), That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
++:[B >: (A, B), That](that: Traversable[B])(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], B, That]): That
- Definition Classes
- TraversableLike
-
def
++:[B >: (A, B), That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], B, That]): That
- Definition Classes
- TraversableLike
-
def
-(key: A): StandardPriorityMap[A, B]
- Definition Classes
- StandardPriorityMap → MapLike → Subtractable → GenMapLike
-
def
-(elem1: A, elem2: A, elems: A*): StandardPriorityMap[A, B]
- Definition Classes
- Subtractable
-
def
--(xs: GenTraversableOnce[A]): StandardPriorityMap[A, B]
- Definition Classes
- Subtractable
-
def
/:[B](z: B)(op: (B, (A, B)) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
:\[B](z: B)(op: ((A, 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, (A, B)) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
andThen[C](k: (B) ⇒ C): PartialFunction[A, C]
- Definition Classes
- PartialFunction → Function1
-
def
apply(key: A): B
- Definition Classes
- MapLike → GenMapLike → Function1
-
def
applyOrElse[K1 <: A, 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[(A, B), B])(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
collectFirst[B](pf: PartialFunction[(A, B), B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
companion: GenericCompanion[Iterable]
- Definition Classes
- Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
-
def
compose[A](g: (A) ⇒ A): (A) ⇒ B
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
contains(key: A): Boolean
- Definition Classes
- MapLike → GenMapLike
-
def
copyToArray[B >: (A, B)](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: (A, B)](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: (A, B)](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer[B >: (A, B)](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
count(p: ((A, B)) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
default(key: A): B
- Definition Classes
- MapLike → GenMapLike
-
def
drop(n: Int): StandardPriorityMap[A, B]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
dropRight(n: Int): StandardPriorityMap[A, B]
- Definition Classes
- IterableLike
-
def
dropWhile(p: ((A, B)) ⇒ Boolean): StandardPriorityMap[A, B]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
empty: StandardPriorityMap[A, B]
An empty priority map of the same type as this priority map.
An empty priority map of the same type as this priority map.
- Definition Classes
- StandardPriorityMap → PriorityMap → Map → 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: ((A, B)) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
filter(p: ((A, B)) ⇒ Boolean): StandardPriorityMap[A, B]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
filterKeys(p: (A) ⇒ Boolean): PriorityMap[A, B]
- Definition Classes
- PriorityMapLike → MapLike → MapLike → GenMapLike
-
def
filterNot(p: ((A, B)) ⇒ Boolean): StandardPriorityMap[A, 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: ((A, B)) ⇒ Boolean): Option[(A, B)]
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
firstKey: Option[A]
Optionally returns the first key of this priority map.
Optionally returns the first key of this priority map.
- Definition Classes
- PriorityMapLike
-
def
firstValue: Option[B]
Optionally returns the first value of this priority map.
Optionally returns the first value of this priority map.
- Definition Classes
- PriorityMapLike
-
def
flatMap[B, That](f: ((A, B)) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
flatten[B](implicit asTraversable: ((A, B)) ⇒ GenTraversableOnce[B]): Iterable[B]
- Definition Classes
- GenericTraversableTemplate
-
def
fold[A1 >: (A, B)](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, (A, B)) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: ((A, B), B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
forall(p: ((A, B)) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
foreach[U](f: ((A, B)) ⇒ U): Unit
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
-
def
from(from: B): StandardPriorityMap[A, B]
Returns a new priority map of the same type as this priority map that only contains values greater than or equal to the given lower bound.
Returns a new priority map of the same type as this priority map that only contains values greater than or equal to the given lower bound.
- from
the lower-bound (inclusive) on values
- Definition Classes
- PriorityMapLike
-
def
genericBuilder[B]: Builder[B, Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
-
def
get(key: A): Option[B]
- Definition Classes
- StandardPriorityMap → MapLike → GenMapLike
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getOrElse[V1 >: B](key: A, default: ⇒ V1): V1
- Definition Classes
- MapLike → GenMapLike
-
def
groupBy[K](f: ((A, B)) ⇒ K): Map[K, StandardPriorityMap[A, B]]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
grouped(size: Int): Iterator[StandardPriorityMap[A, B]]
- Definition Classes
- IterableLike
-
def
hasDefiniteSize: Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
hashCode(): Int
- Definition Classes
- GenMapLike → AnyRef → Any
-
def
head: (A, B)
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
headOption: Option[(A, B)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
init: StandardPriorityMap[A, B]
- Definition Classes
- StandardPriorityMap → TraversableLike → GenTraversableLike
-
def
inits: Iterator[StandardPriorityMap[A, B]]
- Definition Classes
- TraversableLike
-
def
isDefinedAt(key: A): 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
iterator: Iterator[(A, B)]
- Definition Classes
- StandardPriorityMap → MapLike → IterableLike → GenIterableLike
-
def
keySet: Set[A]
- Definition Classes
- MapLike → MapLike → GenMapLike
-
def
keys: Iterable[A]
- Definition Classes
- MapLike → GenMapLike
- Annotations
- @migration
- Migration
(Changed in version 2.8.0)
keys
returnsIterable[K]
rather thanIterator[K]
.
-
def
keysIterator: Iterator[A]
- Definition Classes
- MapLike → GenMapLike
-
def
last: (A, B)
- Definition Classes
- StandardPriorityMap → TraversableLike → GenTraversableLike
-
def
lastKey: Option[A]
Optionally returns the last key of this priority map.
Optionally returns the last key of this priority map.
- Definition Classes
- PriorityMapLike
-
def
lastOption: Option[(A, B)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
lastValue: Option[B]
Optionally returns the last value of this priority map.
Optionally returns the last value of this priority map.
- Definition Classes
- PriorityMapLike
-
def
lift: (A) ⇒ Option[B]
- Definition Classes
- PartialFunction
-
def
map[B, That](f: ((A, B)) ⇒ B)(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
mapValues[C](f: (B) ⇒ C)(implicit ord: Ordering[C]): PriorityMap[A, C]
Transforms this map by applying a function to every retrieved value.
Transforms this map by applying a function to every retrieved value.
- f
the function used to transform values of this map
- returns
a new priority map that maps every key of this map to
f(this(key))
- Definition Classes
- PriorityMapLike
-
def
mapValues[W](f: (B) ⇒ W): Map[A, W]
- Definition Classes
- MapLike → MapLike → GenMapLike
-
def
max[B >: (A, B)](implicit cmp: Ordering[B]): (A, B)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: ((A, B)) ⇒ B)(implicit cmp: Ordering[B]): (A, B)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
merged(kvs: GenTraversableOnce[(A, B)])(f: (B, B) ⇒ B): StandardPriorityMap[A, B]
Merges a number of key/value bindings into this priority map.
Merges a number of key/value bindings into this priority map.
If a key is contained in both this map and the given bindings, computes the new value by applying the given merge function to the existing value and the new value.
- kvs
a traversable object consisting of key/value pairs
- f
the merge function
- returns
a new priority map with the new bindings merged into this map
- Definition Classes
- PriorityMapLike
-
def
min[B >: (A, B)](implicit cmp: Ordering[B]): (A, B)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: ((A, B)) ⇒ B)(implicit cmp: Ordering[B]): (A, 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: PriorityMapBuilder[A, B, StandardPriorityMap[A, B]]
- Attributes
- protected[this]
- Definition Classes
- PriorityMapLike → 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 <: A, B1 >: B](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- Definition Classes
- PartialFunction
-
implicit
val
ordering: Ordering[B]
- Definition Classes
- StandardPriorityMap → PriorityMapLike
-
def
par: ParMap[A, B]
- Definition Classes
- StandardPriorityMap → Parallelizable
-
def
parCombiner: Combiner[(A, B), ParMap[A, B]]
- Attributes
- protected[this]
- Definition Classes
- MapLike → MapLike → TraversableLike → Parallelizable
-
def
partition(p: ((A, B)) ⇒ Boolean): (StandardPriorityMap[A, B], StandardPriorityMap[A, B])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
product[B >: (A, B)](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
range(from: B, until: B): StandardPriorityMap[A, B]
Returns a new priority map of the same type as this priority map that only contains values between the given bounds.
Returns a new priority map of the same type as this priority map that only contains values between the given bounds.
- from
the lower-bound (inclusive) on values
- until
the upper-bound (exclusive) on values
- Definition Classes
- PriorityMapLike
-
def
rangeImpl(from: Option[B], until: Option[B]): StandardPriorityMap[A, B]
Returns a new priority map of the same type as this priority map that only contains values between the given optional bounds.
Returns a new priority map of the same type as this priority map that only contains values between the given optional bounds.
- from
the lower-bound (inclusive) on values or
None
if there is no lower bound- until
the upper-bound (exclusive) on values or
None
if there is no upper bound
- Definition Classes
- StandardPriorityMap → PriorityMapLike
-
def
reduce[A1 >: (A, B)](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceLeft[B >: (A, B)](op: (B, (A, B)) ⇒ B): B
- Definition Classes
- TraversableOnce
-
def
reduceLeftOption[B >: (A, B)](op: (B, (A, B)) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: (A, B)](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: (A, B)](op: ((A, B), B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: (A, B)](op: ((A, B), B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
repr: StandardPriorityMap[A, B]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
reversed: List[(A, B)]
- Attributes
- protected[this]
- Definition Classes
- TraversableOnce
-
def
runWith[U](action: (B) ⇒ U): (A) ⇒ Boolean
- Definition Classes
- PartialFunction
-
def
sameElements[B >: (A, B)](that: GenIterable[B]): Boolean
- Definition Classes
- IterableLike → GenIterableLike
-
def
scan[B >: (A, B), That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[StandardPriorityMap[A, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanLeft[B, That](z: B)(op: (B, (A, B)) ⇒ B)(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanRight[B, That](z: B)(op: ((A, B), B) ⇒ B)(implicit bf: CanBuildFrom[StandardPriorityMap[A, 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: PriorityMap[A, B]
- Definition Classes
- PriorityMap → Map → Map → GenMap → GenMapLike → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
-
def
size: Int
- Definition Classes
- StandardPriorityMap → GenTraversableLike → TraversableOnce → GenTraversableOnce
-
def
sizeHintIfCheap: Int
- Attributes
- protected[scala.collection]
- Definition Classes
- GenTraversableOnce
-
def
slice(from: Int, until: Int): StandardPriorityMap[A, B]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
sliding(size: Int, step: Int): Iterator[StandardPriorityMap[A, B]]
- Definition Classes
- IterableLike
-
def
sliding(size: Int): Iterator[StandardPriorityMap[A, B]]
- Definition Classes
- IterableLike
-
def
span(p: ((A, B)) ⇒ Boolean): (StandardPriorityMap[A, B], StandardPriorityMap[A, B])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
splitAt(n: Int): (StandardPriorityMap[A, B], StandardPriorityMap[A, B])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
stringPrefix: String
- Definition Classes
- PriorityMap → MapLike → TraversableLike → GenTraversableLike
-
def
sum[B >: (A, B)](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: StandardPriorityMap[A, B]
- Definition Classes
- StandardPriorityMap → TraversableLike → GenTraversableLike
-
def
tails: Iterator[StandardPriorityMap[A, B]]
- Definition Classes
- TraversableLike
-
def
take(n: Int): StandardPriorityMap[A, B]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
takeRight(n: Int): StandardPriorityMap[A, B]
- Definition Classes
- IterableLike
-
def
takeWhile(p: ((A, B)) ⇒ Boolean): StandardPriorityMap[A, B]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
thisCollection: Iterable[(A, B)]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (A, B), Col[(A, B)]]): Col[(A, B)]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
toArray[B >: (A, B)](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toBuffer[E >: (A, B)]: Buffer[E]
- Definition Classes
- MapLike → TraversableOnce → GenTraversableOnce
-
def
toCollection(repr: StandardPriorityMap[A, B]): Iterable[(A, B)]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
toIndexedSeq: IndexedSeq[(A, B)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterable: Iterable[(A, B)]
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
toIterator: Iterator[(A, B)]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toList: List[(A, B)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[(A, B), (T, U)]): Map[T, U]
- Definition Classes
- Map → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toSeq: Seq[(A, B)]
- Definition Classes
- MapLike → TraversableOnce → GenTraversableOnce
-
def
toSet[B >: (A, B)]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: Stream[(A, B)]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
-
def
toString(): String
- Definition Classes
- MapLike → TraversableLike → Function1 → AnyRef → Any
-
def
toTraversable: Traversable[(A, B)]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toVector: Vector[(A, B)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
transform[W, That](f: (A, B) ⇒ W)(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], (A, W), That]): That
- Definition Classes
- MapLike
-
def
transpose[B](implicit asTraversable: ((A, 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
until(until: B): StandardPriorityMap[A, B]
Returns a new priority map of the same type as this priority map that only contains values smaller than the given upper bound.
Returns a new priority map of the same type as this priority map that only contains values smaller than the given upper bound.
- until
the upper-bound (exclusive) on values
- Definition Classes
- PriorityMapLike
-
def
unzip[A1, A2](implicit asPair: ((A, B)) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
- Definition Classes
- GenericTraversableTemplate
-
def
unzip3[A1, A2, A3](implicit asTriple: ((A, B)) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- Definition Classes
- GenericTraversableTemplate
-
def
updated(key: A, value: B): StandardPriorityMap[A, B]
Adds a key/value binding to this priority map.
Adds a key/value binding to this priority map.
- key
the key
- value
the value
- returns
a new priority map with the new binding added to this map
- Definition Classes
- PriorityMapLike
-
def
updated[V1 >: B](key: A, value: V1): Map[A, V1]
- Definition Classes
- MapLike → MapLike
-
def
valueSet: SortedSet[B]
Returns the values of this priority map as a sorted set.
Returns the values of this priority map as a sorted set.
- Definition Classes
- StandardPriorityMap → PriorityMapLike
-
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[(A, B), StandardPriorityMap[A, B]]
- Definition Classes
- IterableLike → TraversableLike
-
def
view: IterableView[(A, B), StandardPriorityMap[A, 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
withDefault(d: (A) ⇒ B): PriorityMap[A, B]
The same priority map with a given default function.
The same priority map with a given default function. Note:
get
,contains
,iterator
,keys
, etc. are not affected bywithDefault
.Invoking transformer methods (e.g.
map
) will not preserve the default value.- d
the function mapping keys to values, used for non-present keys
- returns
a wrapper of this priority map with a default function
- Definition Classes
- PriorityMap
-
def
withDefault[V1 >: B](d: (A) ⇒ V1): Map[A, V1]
- Definition Classes
- Map
-
def
withDefaultValue(d: B): PriorityMap[A, B]
The same priority map with a given default value.
The same priority map with a given default value. Note:
get
,contains
,iterator
,keys
, etc. are not affected bywithDefaultValue
.Invoking transformer methods (e.g.
map
) will not preserve the default value.- d
default value used for non-present keys
- returns
a wrapper of this priority map with a default value
- Definition Classes
- PriorityMap
-
def
withDefaultValue[V1 >: B](d: V1): Map[A, V1]
- Definition Classes
- Map
-
def
withFilter(p: ((A, B)) ⇒ Boolean): FilterMonadic[(A, B), StandardPriorityMap[A, B]]
- Definition Classes
- TraversableLike → FilterMonadic
-
def
zip[A1 >: (A, B), B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipAll[B, A1 >: (A, B), That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[StandardPriorityMap[A, B], (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipWithIndex[A1 >: (A, B), That](implicit bf: CanBuildFrom[StandardPriorityMap[A, B], (A1, Int), That]): That
- Definition Classes
- IterableLike → GenIterableLike