|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.graph.mapping.MapMapping
public abstract class MapMapping
A Mapping that is based on a Map. The domain of the Mapping is the set of keys in the Map. MapMappings are immutable in the sense that the underlying Map cannot be changed (although the keys and values associated with the Map can be changed).
Red (ssb) |
Red (ssb) |
Field Summary | |
---|---|
protected java.util.Map |
_map
The Map on which this Mapping is based. |
Constructor Summary | |
---|---|
MapMapping(java.util.Map map)
Construct a MapMapping from a given Map. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Return true if the given object is of the same Class and based on the same Map as this one. |
int |
hashCode()
Return the hash code of this MapMapping. |
boolean |
inDomain(java.lang.Object object)
Return true if the given object is a key in the Map that is associated with this mapping. |
java.lang.String |
toString()
Return a string representation of this MapMapping. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ptolemy.graph.mapping.Mapping |
---|
toObject |
Field Detail |
---|
protected java.util.Map _map
Constructor Detail |
---|
public MapMapping(java.util.Map map)
map
- The given map.Method Detail |
---|
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The given object.
public int hashCode()
hashCode
in class java.lang.Object
public boolean inDomain(java.lang.Object object)
inDomain
in interface Mapping
object
- The given object.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |