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));
Check out the isInt()
, isFloat()
, and isString()
methods of Atom
.
For example:post("is String : " + myatom.isString());