/** * Constructs a new <tt>IsElementOf</tt>, which ensures that the input value is an element of a Collection. * * @param collection * the collection to check * @throws NullPointerException * if collection is null */ public IsElementOf(final Collection<Object> collection) { super(); checkPreconditions(collection); this.collection = collection; }
/** * Constructs a new <tt>IsElementOf</tt>, which ensures that the input value is an element of a Collection, then * calls the next processor in the chain. * * @param collection * the collection to check * @param next * the next processor in the chain * @throws NullPointerException * if collection or next is null */ public IsElementOf(final Collection<Object> collection, final CellProcessor next) { super(next); checkPreconditions(collection); this.collection = collection; }