diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-10-08 18:17:17 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-10-09 09:32:17 +0200 |
commit | 11ca6dc4bd6ee2cf702959328b093a34cb871f4c (patch) | |
tree | ac01d1defe40b052b5cdb1c2f84bbfa4b04b8977 /main/src/cgeo/geocaching/utils | |
parent | 9506d9a7eb13c04f05f89c7ddd9382b2df4d1b4e (diff) | |
download | cgeo-11ca6dc4bd6ee2cf702959328b093a34cb871f4c.zip cgeo-11ca6dc4bd6ee2cf702959328b093a34cb871f4c.tar.gz cgeo-11ca6dc4bd6ee2cf702959328b093a34cb871f4c.tar.bz2 |
Use Apache Commons CollectionUtils instead of reinventing one
Diffstat (limited to 'main/src/cgeo/geocaching/utils')
-rw-r--r-- | main/src/cgeo/geocaching/utils/CollectionUtils.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/main/src/cgeo/geocaching/utils/CollectionUtils.java b/main/src/cgeo/geocaching/utils/CollectionUtils.java deleted file mode 100644 index 9225269..0000000 --- a/main/src/cgeo/geocaching/utils/CollectionUtils.java +++ /dev/null @@ -1,24 +0,0 @@ -package cgeo.geocaching.utils; - -import java.util.List; -import java.util.Map; - -public class CollectionUtils { - - public static <T> boolean isEmpty(List<T> list) { - return list == null || list.isEmpty(); - } - - public static <T, T2> boolean isEmpty(Map<T, T2> map) { - return map == null || map.isEmpty(); - } - - public static <T> boolean isNotEmpty(List<T> list) { - return (list != null && list.size() != 0); - } - - public static <T, T2> boolean isNotEmpty(Map<T, T2> map) { - return (map != null && map.size() != 0); - } - -} |