|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.util.HashMap2D
public class HashMap2D
This class represents a 2-dimensional hash map. A 2-dimensional hash map uses an ordered pair of keys to access associated data.
Constructor Summary | |
---|---|
HashMap2D()
Creates a new instance of HashMap2D. |
|
HashMap2D(int capacity)
Creates a new instance of HashMap2D with given initial capacity |
Method Summary | |
---|---|
boolean |
containsKey(java.lang.Object key1,
java.lang.Object key2)
Tests if the specified objects are a pair of keys in this hash table. |
java.lang.Object |
get(java.lang.Object key1,
java.lang.Object key2)
Returns the value to which the specified pair of keys is mapped. |
void |
put(java.lang.Object key1,
java.lang.Object key2,
java.lang.Object value)
Maps the specified pair of keys to the specified value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HashMap2D()
public HashMap2D(int capacity)
Method Detail |
---|
public void put(java.lang.Object key1, java.lang.Object key2, java.lang.Object value)
public boolean containsKey(java.lang.Object key1, java.lang.Object key2)
public java.lang.Object get(java.lang.Object key1, java.lang.Object key2)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |