org.glassfish.gmbal.generic
Class Display<K,V>
java.lang.Object
org.glassfish.gmbal.generic.Display<K,V>
- Type Parameters:
K - The type of the KeyV - The type of the Value
public class Display<K,V>
- extends Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Display
public Display()
enterScope
public void enterScope()
exitScope
public void exitScope()
bind
public void bind(K key,
V value)
bind
public void bind(Map<K,V> bindings)
lookup
public V lookup(K key)
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.