|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmro.util.DoubleHashMap
public class DoubleHashMap
A DoubleHashMap has two indexes. There is only one copy of each index value.
Constructor Summary | |
---|---|
DoubleHashMap()
|
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.Object first,
java.lang.Object second)
Returns the Object that was indexed with "first" and "second". |
java.util.Set |
keySetOfSecondIndexForElementInFirst(java.lang.Object first)
|
void |
put(java.lang.Object first,
java.lang.Object second,
java.lang.Object value)
Adds a Object "value" indexed with the Object:s "first" and "second" |
java.lang.Object |
remove(java.lang.Object first,
java.lang.Object second)
Removes the Object with the indexes. |
void |
removeAllFirst(java.lang.Object first)
Removes all Objects with the specified "first" index. |
void |
removeAllSecond(java.lang.Object second)
Removes all Objects with the specified "second" index. |
int |
size()
|
int |
sizeOfFirstIndex()
|
int |
sizeOfSecondIndex()
|
int |
sizeOfSecondIndexForElementInFirst(java.lang.Object first)
|
java.util.Vector |
values()
Returns all Objects in the DoubleHashMap as a Vector. |
java.util.Vector |
valuesForFirstIndex(java.lang.Object first)
Returns a HashSet of those value Objects that are stored with the specified "first" index. |
java.util.Vector |
valuesForSecondIndex(java.lang.Object second)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleHashMap()
Method Detail |
---|
public void put(java.lang.Object first, java.lang.Object second, java.lang.Object value)
first
- second
- value
- public java.lang.Object get(java.lang.Object first, java.lang.Object second)
first
- second
-
public java.lang.Object remove(java.lang.Object first, java.lang.Object second)
first
- second
-
public void removeAllFirst(java.lang.Object first)
first
- public void removeAllSecond(java.lang.Object second)
second
- public java.util.Vector values()
public java.util.Vector valuesForFirstIndex(java.lang.Object first)
first
-
public java.util.Vector valuesForSecondIndex(java.lang.Object second)
public int size()
public int sizeOfFirstIndex()
public int sizeOfSecondIndex()
public int sizeOfSecondIndexForElementInFirst(java.lang.Object first)
public java.util.Set keySetOfSecondIndexForElementInFirst(java.lang.Object first)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |