Class Collections

java.lang.Object
org.fest.assertions.Collections

public final class Collections extends Object
Understands utility methods related to Collections.
  • Constructor Details

    • Collections

      private Collections()
  • Method Details

    • notFound

      public static Collection<Object> notFound(Collection<?> target, Object... objects)
      Attempts to find the given objects in the given Collection, returning the ones that were not found.
      Parameters:
      target - the given Collection.
      objects - the elements to find in the given Collection.
      Returns:
      the elements that were not found in the given Collection.
    • found

      public static Collection<Object> found(Collection<?> target, Object... objects)
      Attempts to find the given objects in the given Collection, returning the ones that were found.
      Parameters:
      target - the given Collection.
      objects - the elements to find in the given Collection.
      Returns:
      the elements that were found in the given Collection.