Переглянути джерело

Ajout méthode pour avoir la taille du cache

Arthur Brandao 6 роки тому
батько
коміт
6a690bb690
1 змінених файлів з 8 додано та 0 видалено
  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
 	 */