in scala/collection/mutable
class HashMap

class HashMap[A,B]()
extends Map[A,B]
with ScalaObject
with HashTable[A]
with DefaultMapModel[A,B]

This class implements mutable maps using a hashtable.
Author:
Matthias Zenger
Version:
1.0, 08/07/2003

Method Summary
  def -=(key: A): Unit
     This method removes a mapping from the given key.
override def clear: Unit
     Removes all mappings from the map.
override def clone(): HashMap[A,B]
     Return a clone of this map.
protected def entryKey(e: Entry): A

Methods inherited from java/lang/Object-class
eq, finalize, getClass, notify, notifyAll, synchronized, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/Iterable-class
/:, :\, exists, find, foldLeft, foldRight, forall, foreach, sameElements

Methods inherited from scala/collection/Map-class
apply, contains, equals, exists, forall, foreach, isDefinedAt, isEmpty, keys, toList, values

Methods inherited from scala/collection/mutable/DefaultMapModel-class
Entry, elements, get, update

Methods inherited from scala/collection/mutable/HashTable-class
addEntry, elemEquals, elemHashCode, entries, findEntry, improve, index, initTable, initialSize, initialThreshold, loadFactor, removeEntry, size, table, tableSize, threshold

Methods inherited from scala/collection/mutable/Map-class
++=, ++=, +=, --=, --=, <<, excl, filter, hashCode, incl, map, mappingToString, toString

Method Detail

-=

  def -=(key: A): Unit
This method removes a mapping from the given key. If the map does not contain a mapping for the given key, the method does nothing.

entryKey

  protected def entryKey(e: Entry): A

clear

  override def clear: Unit
Removes all mappings from the map. After this operation is completed, the map is empty.

clone

  override def clone(): HashMap[A,B]
Return a clone of this map.
Returns:
an map with the same elements.