Parcourir la source

Ajout méthode pour avoir la taille du cache

Arthur Brandao il y a 6 ans
Parent
commit
6a690bb690
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  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
 	 */