public class BehaviourMap extends Object
| Constructor and Description |
|---|
BehaviourMap()
Creates an
BehaviourMap with no parent and no mappings. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all bindings from this map..
|
Behaviour |
get(String key)
Returns the binding for
key, messaging the parent
BehaviourMap if the binding is not locally defined. |
Map<String,Behaviour> |
getAllBindings()
Get all bindings defined in this map and its parents.
|
BehaviourMap |
getParent()
Gets this
BehaviourMap's parent. |
Set<String> |
keys() |
int |
modCount() |
void |
put(String key,
Behaviour behaviour)
Adds a binding for
key to behaviour. |
void |
remove(String key)
Removes the binding for
key from this map. |
void |
setParent(BehaviourMap map)
Sets this
BehaviourMap's parent. |
public BehaviourMap()
BehaviourMap with no parent and no mappings.public void setParent(BehaviourMap map)
BehaviourMap's parent.map - the map that is the parent of this onepublic BehaviourMap getParent()
BehaviourMap's parent.null if
this map has no parentpublic void put(String key, Behaviour behaviour)
key to behaviour. If behaviour
is null, this removes the current binding for key.key - behaviour - public Behaviour get(String key)
key, messaging the parent
BehaviourMap if the binding is not locally defined.public void remove(String key)
key from this map.public void clear()
public Map<String,Behaviour> getAllBindings()
BehaviourMap, i.e., it will not
reflect changes to the BehaviourMap.public int modCount()
Copyright © 2015–2022 SciJava. All rights reserved.