|
@@ -31,7 +31,7 @@ public class LispElement<E> {
|
|
|
cache.put(val, this);
|
|
|
}
|
|
|
|
|
|
- public BigInteger getInt() {
|
|
|
+ public BigInteger toInt() {
|
|
|
if(this.value.getClass() == BigInteger.class) {
|
|
|
return (BigInteger) this.value;
|
|
|
}
|
|
@@ -43,7 +43,7 @@ public class LispElement<E> {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public double getNumber() {
|
|
|
+ public double toNumber() {
|
|
|
if(this.value.getClass() == BigInteger.class) {
|
|
|
BigInteger bi = (BigInteger) this.value;
|
|
|
return bi.doubleValue();
|
|
@@ -58,7 +58,7 @@ public class LispElement<E> {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public boolean getBool() {
|
|
|
+ public boolean toBoolean() {
|
|
|
if(this.value.getClass() == LispBoolean.class) {
|
|
|
LispBoolean lb = (LispBoolean) this.value;
|
|
|
return lb.value();
|
|
@@ -71,7 +71,7 @@ public class LispElement<E> {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public String getString() {
|
|
|
+ public String toStr() {
|
|
|
if(this.value.getClass() == String.class) {
|
|
|
return (String) this.value;
|
|
|
}
|