diff core/src/luan/LuanTable.java @ 202:75750ceb45ee

add LuanState.registry git-svn-id: https://luan-java.googlecode.com/svn/trunk@203 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 04 Jul 2014 17:18:39 +0000
parents be0275bda373
children ec016471c6eb
line wrap: on
line diff
--- a/core/src/luan/LuanTable.java	Thu Jul 03 22:42:44 2014 +0000
+++ b/core/src/luan/LuanTable.java	Fri Jul 04 17:18:39 2014 +0000
@@ -385,4 +385,8 @@
 			throw new UnsupportedOperationException();
 		}
 	}
+
+	public boolean isEmpty() {
+		return (list==null || list.isEmpty()) && (map==null || map.isEmpty());
+	}
 }