Package io.fluentlenium.utils
Class CollectionUtils
java.lang.Object
io.fluentlenium.utils.CollectionUtils
Utility methods for working with collections.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isEmpty
(Collection<?> collection) Returns whether a collection is null or empty.static boolean
Checks whether the argument field is aList
.
-
Method Details
-
isList
Checks whether the argument field is aList
.- Parameters:
field
- the field to check the type of- Returns:
- true if the field is a List, false otherwise
-
isEmpty
Returns whether a collection is null or empty.- Parameters:
collection
- the collection to check- Returns:
- true if the collection is either null or empty, false otherwise
-