graphlab.platform.attribute
Class NotifiableAttributeSetImpl
java.lang.Object
graphlab.platform.attribute.AttributeSetImpl
graphlab.platform.attribute.NotifiableAttributeSetImpl
- All Implemented Interfaces:
- AttributeSet, NotifiableAttributeSet
public class NotifiableAttributeSetImpl
- extends AttributeSetImpl
- implements NotifiableAttributeSet
Default implementation for the NotifiableAttributeSet
- Author:
- Azin Azadi, Reza Mohammadi, Rouzbeh Ebrahimi
- See Also:
NotifiableAttributeSet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotifiableAttributeSetImpl
public NotifiableAttributeSetImpl()
put
public void put(java.lang.String name,
java.lang.Object value)
- Specified by:
put
in interface AttributeSet
- Overrides:
put
in class AttributeSetImpl
get
public java.lang.Object get(java.lang.String name)
- Specified by:
get
in interface AttributeSet
- Overrides:
get
in class AttributeSetImpl
addAttributeListener
public void addAttributeListener(AttributeListener attributeListener)
- Description copied from interface:
NotifiableAttributeSet
- Add a listener to changes of an AttributeSet.
It's better to use a List
because of
getAttributeListeners()
method.
- Specified by:
addAttributeListener
in interface NotifiableAttributeSet
- Parameters:
attributeListener
- the listener!
getAttributeListeners
public java.util.Collection<AttributeListener> getAttributeListeners()
- Specified by:
getAttributeListeners
in interface NotifiableAttributeSet
- Returns:
- List of listeners
removeAttributeListener
public void removeAttributeListener(AttributeListener x)
- Description copied from interface:
NotifiableAttributeSet
- Remove a listener from list of listeners.
- Specified by:
removeAttributeListener
in interface NotifiableAttributeSet
fireAttributeChange
public void fireAttributeChange(java.util.Collection<AttributeListener> listeners,
java.lang.String name,
java.lang.Object oldVal,
java.lang.Object newVal)