get Atom generic type


    Sep 27 2013 | 7:55 am
    Hi, i am looking for a way to get the subtype of an Atom in java.
    can i do something like below (in pseudo code) :
    post("is String : " + myatom.GetClass().equals(Atom.class)
    post("is String : " + (myatom instanceof Atom));

    • Sep 28 2013 | 1:31 am
      Check out the isInt(), isFloat(), and isString() methods of Atom.
      For example:
      post("is String : " + myatom.isString());