|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.DictionaryLookup
public final class DictionaryLookup
A simple mutable Lookup implementation that
is backed by a Map.

| Constructor Summary | |
|---|---|
DictionaryLookup()
Creates an instance with an initially empty map as backing store. |
|
DictionaryLookup(java.util.Map map)
Creates an instance with the given map as the backing store. |
|
| Method Summary | |
|---|---|
boolean |
hasLookup(java.lang.Class type)
Determines whether the specified type exists in this lookup. |
java.lang.Object |
lookup(java.lang.Class type)
Performs the lookup |
void |
put(java.lang.Class type,
java.lang.Object value)
Adds an in instance to the map for the given type. |
void |
remove(java.lang.Class type)
Removes the specified type from this lookup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DictionaryLookup()
public DictionaryLookup(java.util.Map map)
map - the backing store.
java.lang.IllegalArgumentException - if the map is null| Method Detail |
|---|
public void put(java.lang.Class type,
java.lang.Object value)
If value is null the entry is removed
from the map.
type - the type that will be used as a key for queriesvalue - the instance implementing type or null
java.lang.IllegalArgumentException - if the parameters do not matchpublic java.lang.Object lookup(java.lang.Class type)
lookup in interface Lookuptype - the type to query
nullpublic boolean hasLookup(java.lang.Class type)
type - The type to look up.
true if the specified type exists in this lookup;
false otherwise.public void remove(java.lang.Class type)
type - The type to remove from this instance.
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||