Package dev.paseto.jpaseto.lang
Class Collections
- java.lang.Object
-
- dev.paseto.jpaseto.lang.Collections
-
public final class Collections extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEmpty(java.util.Collection collection)Returntrueif the supplied Collection isnullor empty.static booleanisEmpty(java.util.Map map)Returntrueif the supplied Map isnullor empty.
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(java.util.Collection collection)
Returntrueif the supplied Collection isnullor empty. Otherwise, returnfalse.- Parameters:
collection- the Collection to check- Returns:
- whether the given Collection is empty
-
isEmpty
public static boolean isEmpty(java.util.Map map)
Returntrueif the supplied Map isnullor empty. Otherwise, returnfalse.- Parameters:
map- the Map to check- Returns:
- whether the given Map is empty
-
-