Class CollectionUtils

java.lang.Object
io.fluentlenium.utils.CollectionUtils

public final class CollectionUtils extends Object
Utility methods for working with collections.
  • Method Details

    • isList

      public static boolean isList (Field field)
      Checks whether the argument field is a List.
      Parameters:
      field - the field to check the type of
      Returns:
      true if the field is a List, false otherwise
    • isEmpty

      public static boolean isEmpty (Collection<?> collection)
      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