scalax.data

trait PolyMap

[source: scalax/data/PolyMap.scala]

trait PolyMap[Key, Value]
extends scala.Collection[(Key[Any], Value[Any])]
A Map variant that operates over polymorphic element types.
Direct Known Subclasses:
PolyHashMap

Type Summary
type ElemType
Method Summary
abstract def -= [A](k : Key[A]) : Unit
abstract def apply [A](k : Key[A]) : Value[A]
abstract def contains [A](k : Key[A]) : Boolean
abstract def get [A](k : Key[A]) : scala.Option[Value[A]]
Methods inherited from scala.Collection
scala.Collection.size (abstract), scala.Collection.toArray, scala.Collection.toString, scala.Collection.stringPrefix
Methods inherited from scala.Iterable
scala.Iterable.elements (abstract), scala.Iterable.concat, scala.Iterable.++, scala.Iterable.map, scala.Iterable.flatMap, scala.Iterable.filter, scala.Iterable.partition, scala.Iterable.takeWhile, scala.Iterable.dropWhile, scala.Iterable.take, scala.Iterable.drop, scala.Iterable.foreach, scala.Iterable.forall, scala.Iterable.exists, scala.Iterable.find, scala.Iterable.findIndexOf, scala.Iterable.indexOf, scala.Iterable.foldLeft, scala.Iterable.foldRight, scala.Iterable./:, scala.Iterable.:\, scala.Iterable.reduceLeft, scala.Iterable.reduceRight, scala.Iterable.copyToBuffer, scala.Iterable.sameElements, scala.Iterable.toList, scala.Iterable.toSeq, scala.Iterable.toStream, scala.Iterable.mkString, scala.Iterable.mkString, scala.Iterable.mkString, scala.Iterable.addString, scala.Iterable.addString, scala.Iterable.addString, scala.Iterable.copyToArray, scala.Iterable.isEmpty, scala.Iterable.projection, scala.Iterable.hasDefiniteSize
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Type Details
type ElemType

Method Details
abstract def get[A](k : Key[A]) : scala.Option[Value[A]]

abstract def apply[A](k : Key[A]) : Value[A]

abstract def contains[A](k : Key[A]) : Boolean

abstract def -=[A](k : Key[A]) : Unit


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.