org.fest.assertions
Class Collections

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

public final class Collections
extends Object

Understands utility methods related to Collections.

Author:
Alex Ruiz

Method Summary
static Collection<Object> found(Collection<?> target, Object... objects)
          Attempts to find the given objects in the given Collection, returning the ones that were found.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.