diff options
Diffstat (limited to 'util/src')
-rw-r--r-- | util/src/org/aspectj/util/LangUtil.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java index 224ca8e02..09aa801f4 100644 --- a/util/src/org/aspectj/util/LangUtil.java +++ b/util/src/org/aspectj/util/LangUtil.java @@ -28,6 +28,7 @@ import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.List; +import java.util.Map; import java.util.StringTokenizer; /** @@ -205,6 +206,11 @@ public class LangUtil { return ((null == collection) || (0 == collection.size())); } + /** @return ((null == map) || (0 == map.size())) */ + public static boolean isEmpty(Map<?,?> map) { + return ((null == map) || (0 == map.size())); + } + /** * Splits <code>text</code> at whitespace. * |