com.codemesh.terp.api
Class Rvalue.PropertyHolder<T>
java.lang.Object
com.codemesh.terp.api.Rvalue.AbstractRvalue
com.codemesh.terp.api.Rvalue.PropertyHolder<T>
- All Implemented Interfaces:
- Rvalue
- Enclosing interface:
- Rvalue
public static class Rvalue.PropertyHolder<T>
- extends Rvalue.AbstractRvalue
A hoder type that can be used to provide a level of indirection
for collections.
When a collection is modified by one agent and another agent is interested
in changes to that collection, this type allows us to connect these two
without tightly coupling them. The PropertyHolder wraps around the collection
and provides a terp-transparent interface for the collection.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rvalue.PropertyHolder
public Rvalue.PropertyHolder(T obj)
get
public T get()
- Description copied from interface:
Rvalue
- Returns the value referenced by the instance.
- Returns:
- the dereferenced value.
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
getPropertyChangeListeners
public java.beans.PropertyChangeListener[] getPropertyChangeListeners()
firePropertyChange
public void firePropertyChange(java.lang.String name)
Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.