Explorar o código

Ajout méthode pour avoir la taille du cache

Arthur Brandao %!s(int64=6) %!d(string=hai) anos
pai
achega
6a690bb690
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/migl/lisp/LispElement.java

+ 8 - 0
src/migl/lisp/LispElement.java

@@ -195,6 +195,14 @@ public class LispElement {
 		return this.value.toString();
 	}
 	
+	/**
+	 * Indique le nombre actuel d'element en cache
+	 * @return
+	 */
+	public static int getCacheSize() {
+		return cache.size();
+	}
+	
 	/**
 	 * Supprime le cache
 	 */