|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.octet.collection.BasicAtomMap
A default implementation of the AtomMap interface backed by a
HashMap.
| Constructor Summary | |
BasicAtomMap(java.util.Map map)
Constructs a fully functional BasicAtomMap using the specified Map
for the mapping relationships. |
|
| Method Summary | |
boolean |
containsKey(Atom key)
Returns true if key is contained among the keys in this
AtomMap or false otherwise. |
boolean |
containsValue(Atom value)
Returns true if value is contained among the values
in this AtomMap. |
int |
countAtomEntries()
Returns the number of associations. |
Atom |
getAtom(Atom key)
Returns the Atom associated with key. |
AtomIterator |
iterateAtomKeys()
Returns an AtomIterator over all keys. |
AtomIterator |
iterateAtomValues()
Returns an AtomIterator over all values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicAtomMap(java.util.Map map)
BasicAtomMap using the specified Map
for the mapping relationships. The contents of map are copied to a new
instance of a HashMap.
map - the map containing Atom key/value relationships
java.lang.IllegalArgumentException - if map contains null, or any of the keys/values do not
implement the Atom interface| Method Detail |
public Atom getAtom(Atom key)
AtomMapAtom associated with key.
getAtom in interface AtomMapkey - the Atom key
public int countAtomEntries()
AtomMap
countAtomEntries in interface AtomMappublic AtomIterator iterateAtomKeys()
AtomMapAtomIterator over all keys.
iterateAtomKeys in interface AtomMappublic boolean containsKey(Atom key)
AtomMaptrue if key is contained among the keys in this
AtomMap or false otherwise.
containsKey in interface AtomMapkey - the Atom key
public boolean containsValue(Atom value)
AtomMaptrue if value is contained among the values
in this AtomMap.
containsValue in interface AtomMapvalue - the Atom value
public AtomIterator iterateAtomValues()
AtomMapAtomIterator over all values.
iterateAtomValues in interface AtomMap
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||