get Atom generic type

Sep 27, 2013 at 12:55am

get Atom generic type

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 27, 2013 at 6:31pm

Check out the isInt(), isFloat(), and isString() methods of Atom.

For example:
post("is String : " + myatom.isString());


You must be logged in to reply to this topic.