コード例 #1
0
 /**
  * Creates a new <code>{@link AnyOf}</code>
  *
  * @param <T> the type of object the given condition accept.
  * @param conditions the conditions to evaluate.
  * @return the created {@code AnyOf}.
  * @throws NullPointerException if the given iterable is {@code null}.
  * @throws NullPointerException if any of the elements in the given iterable is {@code null}.
  */
 public static <T> Condition<T> anyOf(Iterable<? extends Condition<? super T>> conditions) {
   return AnyOf.anyOf(conditions);
 }
コード例 #2
0
 /**
  * Only delegate to {@link AnyOf#anyOf(Condition...)} so that Assertions offers a full feature
  * entry point to all Fest Assert features (but you can use {@link AnyOf} if you prefer).
  *
  * <p>Typical usage (<code>jedi</code> and <code>sith</code> are {@link Condition}) :
  *
  * <pre>
  * assertThat("Vader").is(anyOf(jedi, sith));
  * </pre>
  */
 public static <T> Condition<T> anyOf(Condition<? super T>... conditions) {
   return AnyOf.anyOf(conditions);
 }