Here you can find the source of anyIsTrue(Boolean... conditions)
Parameter | Description |
---|---|
conditions | the conditions. |
public static final boolean anyIsTrue(Boolean... conditions)
//package com.java2s; public class Main { /**/*from ww w. j a v a 2 s.c o m*/ * Indicates whether any of the given conditions are not null and true. * * @param conditions the conditions. * @return whether any of the given conditions are not null and true. */ public static final boolean anyIsTrue(Boolean... conditions) { if (conditions != null) { for (Boolean condition : conditions) { if (condition != null && condition.booleanValue()) { return true; } } } return false; } }