trait
PriorityMapLike[A, B, +This <: PriorityMapLike[A, B, This] with PriorityMap[A, B]] extends MapLike[A, B, This]
Type Members
-
-
-
class
FilteredKeys extends AbstractMap[A, B] with DefaultMap[A, B]
-
class
ImmutableDefaultKeySet extends scala.collection.immutable.MapLike.DefaultKeySet with Set[A]
-
class
MappedValues[C] extends AbstractMap[A, C] with DefaultMap[A, C]
-
type
Self = This
-
class
WithFilter extends FilterMonadic[A, Repr]
Abstract Value Members
-
abstract
def
+(kv: (A, B)): This
-
abstract
def
+[B1 >: B](kv: (A, B1)): Map[A, B1]
-
abstract
def
-(key: A): This
-
abstract
def
empty: This
-
abstract
def
get(key: A): Option[B]
-
abstract
def
iterator: Iterator[(A, B)]
-
implicit abstract
def
ordering: Ordering[B]
-
abstract
def
rangeImpl(from: Option[B], until: Option[B]): This
-
abstract
def
seq: Map[A, B]
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(kv1: (A, B), kv2: (A, B), kvs: (A, B)*): This
-
def
+[B1 >: B](elem1: (A, B1), elem2: (A, B1), elems: (A, B1)*): Map[A, B1]
-
-
-
def
++[B >: (A, B), That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[This, B, That]): That
-
def
++:[B >: (A, B), That](that: Traversable[B])(implicit bf: CanBuildFrom[This, B, That]): That
-
def
++:[B >: (A, B), That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[This, B, That]): That
-
def
-(elem1: A, elem2: A, elems: A*): This
-
-
def
/:[B](z: B)(op: (B, (A, B)) ⇒ B): B
-
def
:\[B](z: B)(op: ((A, B), B) ⇒ B): B
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
-
def
addString(b: StringBuilder): StringBuilder
-
def
addString(b: StringBuilder, sep: String): StringBuilder
-
def
aggregate[B](z: B)(seqop: (B, (A, B)) ⇒ B, combop: (B, B) ⇒ B): B
-
def
andThen[C](k: (B) ⇒ C): PartialFunction[A, C]
-
def
apply(key: A): B
-
def
applyOrElse[A1 <: A, B1 >: B](x: A1, default: (A1) ⇒ B1): B1
-
final
def
asInstanceOf[T0]: T0
-
def
canEqual(that: Any): Boolean
-
def
clone(): AnyRef
-
def
collect[B, That](pf: PartialFunction[(A, B), B])(implicit bf: CanBuildFrom[This, B, That]): That
-
-
def
compose[A](g: (A) ⇒ A): (A) ⇒ B
-
def
contains(key: A): Boolean
-
def
copyToArray[B >: (A, B)](xs: Array[B], start: Int, len: Int): Unit
-
def
copyToArray[B >: (A, B)](xs: Array[B]): Unit
-
def
copyToArray[B >: (A, B)](xs: Array[B], start: Int): Unit
-
def
copyToBuffer[B >: (A, B)](dest: Buffer[B]): Unit
-
def
count(p: ((A, B)) ⇒ Boolean): Int
-
def
default(key: A): B
-
def
drop(n: Int): This
-
def
dropRight(n: Int): This
-
def
dropWhile(p: ((A, B)) ⇒ Boolean): This
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(that: Any): Boolean
-
-
def
filter(p: ((A, B)) ⇒ Boolean): This
-
-
def
filterNot(p: ((A, B)) ⇒ Boolean): This
-
def
finalize(): Unit
-
def
find(p: ((A, B)) ⇒ Boolean): Option[(A, B)]
-
def
firstKey: Option[A]
-
def
firstValue: Option[B]
-
def
flatMap[B, That](f: ((A, B)) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[This, B, That]): That
-
def
fold[A1 >: (A, B)](z: A1)(op: (A1, A1) ⇒ A1): A1
-
def
foldLeft[B](z: B)(op: (B, (A, B)) ⇒ B): B
-
def
foldRight[B](z: B)(op: ((A, B), B) ⇒ B): B
-
-
def
foreach[U](f: ((A, B)) ⇒ U): Unit
-
def
from(from: B): This
-
final
def
getClass(): Class[_]
-
def
getOrElse[B1 >: B](key: A, default: ⇒ B1): B1
-
def
groupBy[K](f: ((A, B)) ⇒ K): Map[K, This]
-
def
grouped(size: Int): Iterator[This]
-
def
hasDefiniteSize: Boolean
-
def
hashCode(): Int
-
def
head: (A, B)
-
def
headOption: Option[(A, B)]
-
def
init: This
-
def
inits: Iterator[This]
-
def
isDefinedAt(key: A): Boolean
-
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
isTraversableAgain: Boolean
-
def
keySet: Set[A]
-
-
def
keysIterator: Iterator[A]
-
def
last: (A, B)
-
def
lastKey: Option[A]
-
def
lastOption: Option[(A, B)]
-
def
lastValue: Option[B]
-
def
lift: (A) ⇒ Option[B]
-
def
map[B, That](f: ((A, B)) ⇒ B)(implicit bf: CanBuildFrom[This, B, That]): That
-
def
mapValues[C](f: (B) ⇒ C)(implicit ord: Ordering[C]): PriorityMap[A, C]
-
def
mapValues[C](f: (B) ⇒ C): Map[A, C]
-
def
max[B >: (A, B)](implicit cmp: Ordering[B]): (A, B)
-
def
maxBy[B](f: ((A, B)) ⇒ B)(implicit cmp: Ordering[B]): (A, B)
-
def
merged(kvs: GenTraversableOnce[(A, B)])(f: (B, B) ⇒ B): This
-
def
min[B >: (A, B)](implicit cmp: Ordering[B]): (A, B)
-
def
minBy[B](f: ((A, B)) ⇒ B)(implicit cmp: Ordering[B]): (A, B)
-
def
mkString: String
-
def
mkString(sep: String): String
-
def
mkString(start: String, sep: String, end: String): String
-
final
def
ne(arg0: AnyRef): Boolean
-
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
def
par: ParMap[A, B]
-
def
parCombiner: Combiner[(A, B), ParMap[A, B]]
-
def
partition(p: ((A, B)) ⇒ Boolean): (This, This)
-
def
product[B >: (A, B)](implicit num: Numeric[B]): B
-
def
range(from: B, until: B): This
-
def
reduce[A1 >: (A, B)](op: (A1, A1) ⇒ A1): A1
-
def
reduceLeft[B >: (A, B)](op: (B, (A, B)) ⇒ B): B
-
def
reduceLeftOption[B >: (A, B)](op: (B, (A, B)) ⇒ B): Option[B]
-
def
reduceOption[A1 >: (A, B)](op: (A1, A1) ⇒ A1): Option[A1]
-
def
reduceRight[B >: (A, B)](op: ((A, B), B) ⇒ B): B
-
def
reduceRightOption[B >: (A, B)](op: ((A, B), B) ⇒ B): Option[B]
-
def
repr: This
-
def
reversed: List[(A, B)]
-
def
runWith[U](action: (B) ⇒ U): (A) ⇒ Boolean
-
def
sameElements[B >: (A, B)](that: GenIterable[B]): Boolean
-
def
scan[B >: (A, B), That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[This, B, That]): That
-
def
scanLeft[B, That](z: B)(op: (B, (A, B)) ⇒ B)(implicit bf: CanBuildFrom[This, B, That]): That
-
def
scanRight[B, That](z: B)(op: ((A, B), B) ⇒ B)(implicit bf: CanBuildFrom[This, B, That]): That
-
def
size: Int
-
def
slice(from: Int, until: Int): This
-
def
sliding(size: Int, step: Int): Iterator[This]
-
def
sliding(size: Int): Iterator[This]
-
def
span(p: ((A, B)) ⇒ Boolean): (This, This)
-
def
splitAt(n: Int): (This, This)
-
def
stringPrefix: String
-
def
sum[B >: (A, B)](implicit num: Numeric[B]): B
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
tail: This
-
def
tails: Iterator[This]
-
def
take(n: Int): This
-
def
takeRight(n: Int): This
-
def
takeWhile(p: ((A, B)) ⇒ Boolean): This
-
def
thisCollection: Iterable[(A, B)]
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (A, B), Col[(A, B)]]): Col[(A, B)]
-
def
toArray[B >: (A, B)](implicit arg0: ClassTag[B]): Array[B]
-
def
toBuffer[C >: (A, B)]: Buffer[C]
-
def
toCollection(repr: This): Iterable[(A, B)]
-
def
toIndexedSeq: IndexedSeq[(A, B)]
-
def
toIterable: Iterable[(A, B)]
-
def
toIterator: Iterator[(A, B)]
-
def
toList: List[(A, B)]
-
def
toMap[T, U](implicit ev: <:<[(A, B), (T, U)]): Map[T, U]
-
def
toSeq: Seq[(A, B)]
-
def
toSet[B >: (A, B)]: Set[B]
-
def
toStream: Stream[(A, B)]
-
def
toString(): String
-
def
toTraversable: Traversable[(A, B)]
-
def
toVector: Vector[(A, B)]
-
def
transform[C, That](f: (A, B) ⇒ C)(implicit bf: CanBuildFrom[This, (A, C), That]): That
-
def
until(until: B): This
-
def
updated(key: A, value: B): This
-
def
updated[B1 >: B](key: A, value: B1): Map[A, B1]
-
-
-
def
valuesIterator: Iterator[B]
-
def
view(from: Int, until: Int): IterableView[(A, B), This]
-
def
view: IterableView[(A, B), This]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
withFilter(p: ((A, B)) ⇒ Boolean): FilterMonadic[(A, B), This]
-
def
zip[A1 >: (A, B), B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[This, (A1, B), That]): That
-
def
zipAll[B, A1 >: (A, B), That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[This, (A1, B), That]): That
-
def
zipWithIndex[A1 >: (A, B), That](implicit bf: CanBuildFrom[This, (A1, Int), That]): That
Deprecated Value Members
-
def
/:\[A1 >: (A, B)](z: A1)(op: (A1, A1) ⇒ A1): A1
Inherited from (A) ⇒ B
Inherited from AnyRef
Inherited from Any
A template trait for immutable priority maps. To create a concrete priority map, you need to implement the following methods in addition to those of
MapLike
:The iterator returned by
iterator
should generate key/value pairs in the order specified by the implicit ordering on values.Concrete classes may also override other methods for efficiency.