GraphLab Project

graphlab.platform.attribute
Class AttributeSetImpl

java.lang.Object
  extended by graphlab.platform.attribute.AttributeSetImpl
All Implemented Interfaces:
AttributeSet
Direct Known Subclasses:
NotifiableAttributeSetImpl

public class AttributeSetImpl
extends java.lang.Object
implements AttributeSet

Author:
azin azadi

Field Summary
protected  java.util.HashMap<java.lang.String,java.lang.Object> atr
           
 
Constructor Summary
AttributeSetImpl()
           
 
Method Summary
 void clear()
          clears all attributes in this set, this means that after calling this method the set of attributes will be empty
 boolean contains(java.lang.String name)
           
 java.lang.Object get(java.lang.String name)
           
 java.util.Map<java.lang.String,java.lang.Object> getAttrs()
           
 void put(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

atr

protected java.util.HashMap<java.lang.String,java.lang.Object> atr
Constructor Detail

AttributeSetImpl

public AttributeSetImpl()
Method Detail

getAttrs

public java.util.Map<java.lang.String,java.lang.Object> getAttrs()
Specified by:
getAttrs in interface AttributeSet
Returns:
a unmodifiable copy of attributes in this object

put

public void put(java.lang.String name,
                java.lang.Object value)
Specified by:
put in interface AttributeSet

get

public java.lang.Object get(java.lang.String name)
Specified by:
get in interface AttributeSet

contains

public boolean contains(java.lang.String name)

clear

public void clear()
clears all attributes in this set, this means that after calling this method the set of attributes will be empty


GraphLab Project