Top Description Fields Constructors Methods
org.glassfish.pfl.basic.contain

public Class Display<K, V>

extends Object
Class Inheritance
Type Parameters
<K>
The type of the Key
<V>
The type of the Value
Imports
java.util.ArrayList, .HashMap, .List, .Map

Supports a Display as typically found in Lexical scoping. Upon entering a scope, a new environment is available for binding keys to values. Exiting a scope remove the top-most environment. Lookup searches from the top down to find the value for the first matching key.
Author
ken

Field Summary

Modifier and TypeField and Description
private List<Map<K, V>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
bind(K key, V value)

public void
bind(Map<K, V> bindings)

public void
public void
public V
lookup(K key)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

displayback to summary
private List<Map<K, V>> display

Constructor Detail

Displayback to summary
public Display()

Method Detail

bindback to summary
public void bind(K key, V value)
bindback to summary
public void bind(Map<K, V> bindings)
enterScopeback to summary
public void enterScope()
exitScopeback to summary
public void exitScope()
lookupback to summary
public V lookup(K key)