浏览代码

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
 	 */