scalax.data

class PolyHashMap

[source: scalax/data/PolyHashMap.scala]

class PolyHashMap[Key, Value]
extends PolyMap[Key, Value] with AnyRef
A HashMap variant that operates over polymorphic element types. WARNING: This is currently sound only if Key and Value are invariant in their parameters, due to compiler issue #285.
Method Summary
def -= [A](k : Key[A]) : Unit
def apply [A](k : Key[A]) : Value[A]
def clear : Unit
def contains [A](k : Key[A]) : Boolean
def elements : scala.Iterator[scala.Tuple2]
def get [A](k : Key[A]) : scala.Option[Value[A]]
def size : Int
def update [A](k : Key[A], v : Value[A]) : Unit
Methods inherited from scala.Collection
scala.Collection.toArray, scala.Collection.toString, scala.Collection.stringPrefix
Methods inherited from scala.Iterable
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
Method Details
def get[A](k : Key[A]) : scala.Option[Value[A]]
Overrides
PolyMap.get

def apply[A](k : Key[A]) : Value[A]
Overrides
PolyMap.apply

def update[A](k : Key[A], v : Value[A]) : Unit

def contains[A](k : Key[A]) : Boolean
Overrides
PolyMap.contains

def -=[A](k : Key[A]) : Unit
Overrides
PolyMap.-=

def clear : Unit

def elements : scala.Iterator[scala.Tuple2]

def size : Int


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