diff options
author | Andy Clement <andrew.clement@gmail.com> | 2012-10-01 13:22:37 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2012-10-01 13:22:37 -0700 |
commit | 9a3cc2bc5c824d252140fb3d1e2e27f2163e6d53 (patch) | |
tree | cb4bfaf7de826280933a898850894464b730c5c0 /util/src | |
parent | 0bbb4f252a1efa7408f55e06fc062baddce0dcba (diff) | |
download | aspectj-9a3cc2bc5c824d252140fb3d1e2e27f2163e6d53.tar.gz aspectj-9a3cc2bc5c824d252140fb3d1e2e27f2163e6d53.zip |
389967
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. * |