GraphLab Project

graphlab.platform.lang
Class ArrayX<T>

java.lang.Object
  extended by graphlab.platform.lang.SetValidator<T>
      extended by graphlab.platform.lang.ArrayX<T>
All Implemented Interfaces:
AtomAttribute<T>, Validator<T>, java.io.Serializable

public class ArrayX<T>
extends SetValidator<T>
implements AtomAttribute<T>

an eXtended data type that you can set it and also get it, only if your value is in the predefined set.

Author:
Azin Azadi
See Also:
SetValidator, AtomAttribute, Serialized Form

Constructor Summary
ArrayX(T initVal, T... x)
           
 
Method Summary
static ArrayX fromString(java.lang.String s)
           
 T getValue()
           
 boolean setValue(T t)
           
 java.lang.String toString()
           
 
Methods inherited from class graphlab.platform.lang.SetValidator
addValidValue, addValidValues, getValidValues, isValid, removeValidValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface graphlab.platform.lang.Validator
isValid
 

Constructor Detail

ArrayX

public ArrayX(T initVal,
              T... x)
Method Detail

setValue

public boolean setValue(T t)
Specified by:
setValue in interface AtomAttribute<T>

getValue

public T getValue()
Specified by:
getValue in interface AtomAttribute<T>

toString

public java.lang.String toString()
Overrides:
toString in class SetValidator<T>

fromString

public static ArrayX fromString(java.lang.String s)

GraphLab Project