|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoolbus.environment.ListBindings
class ListBindings
ListBindings uses a simple LinkedList to implement the Bindings interface.
Field Summary | |
---|---|
private java.util.LinkedList<Binding> |
bindings
|
Constructor Summary | |
---|---|
|
ListBindings()
|
protected |
ListBindings(ListBindings listBindings)
|
Method Summary | |
---|---|
Bindings |
clone()
|
Binding |
get(java.lang.String key)
Return the first binding of for a given key value |
java.util.List<Binding> |
getBindingsAsList()
Returns a copy of the content of the bindings as a list. |
void |
put(java.lang.String key,
Binding b)
Introduce a new (key, binding) pair |
void |
remove(java.lang.String key)
Remove the first binding for key |
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.util.LinkedList<Binding> bindings
Constructor Detail |
---|
public ListBindings()
protected ListBindings(ListBindings listBindings)
Method Detail |
---|
public Bindings clone()
clone
in interface Bindings
clone
in class java.lang.Object
public Binding get(java.lang.String key)
Bindings
get
in interface Bindings
public int size()
size
in interface Bindings
public void put(java.lang.String key, Binding b)
Bindings
put
in interface Bindings
public void remove(java.lang.String key)
Bindings
remove
in interface Bindings
public java.util.List<Binding> getBindingsAsList()
Bindings
getBindingsAsList
in interface Bindings
public java.lang.String toString()
toString
in interface Bindings
toString
in class java.lang.Object
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |