api/src/main/java/org/ocpsoft/rewrite/config/And.java
public static And all(final Condition... conditions)
   {
      Assert.notNull(conditions, "At least one condition is required.");
      Assert.assertTrue(conditions.length > 0, "At least one condition is required.");
      return new And(flattenConditions(Arrays.asList(conditions)).toArray(new Condition[] {}));
   }
public static And all(final Condition... conditions)
   {
      Assert.notNull(conditions, "At least one condition is required.");
      Assert.assertTrue(conditions.length > 0, "At least one condition is required.");
      return new And(flattenConditions(Arrays.asList(conditions)).toArray(new Condition[] {}));
   }
public static And all ( final Condition ... conditions ) { Assert . notNull ( conditions , "At least one condition is required." ) ; Assert . assertTrue ( conditions . length > 0 , "At least one condition is required." ) ; return new And ( flattenConditions ( Arrays . asList ( conditions ) ) . toArray ( new Condition [ ] { } ) ) ; }
Creates a new {@link And} condition. If all provided {@link Condition} instances return <code>true</code>, this
condition returns <code>true</code>. If any provided conditions return <code>false</code>, this condition returns
<code>false</code>.

@param conditions the array of conditions to be evaluated
Creates a new { @link And } condition . If all provided { @link Condition } instances return <code > true< / code > this condition returns <code > true< / code > . If any provided conditions return <code > false< / code > this condition returns <code > false< / code > .