Selaa lähdekoodia

Renommage méthode

Arthur Brandao 6 vuotta sitten
vanhempi
sitoutus
19b6cf3e20
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      src/migl/lisp/LispElement.java

+ 4 - 4
src/migl/lisp/LispElement.java

@@ -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;
 		}