/** * Returns true if the contained condition returns false. * * This implies that it returns false if the contained condition is null. * * @param element the object to be evaluated. * @return true if the contained condition returns false. */ @Override public boolean isTrue(Object element) { if(condition != null) { return !condition.isTrue(element); } return false; }
/** * Returns true if the contained condition returns false. * * This implies that it returns false if the contained condition is null. * * @param element the object to be evaluated. * @return true if the contained condition returns false. */ @Override public boolean isTrue(Object element) { if(condition != null) { return !condition.isTrue(element); } return false; }
/** * Returns true if any of the contained conditions is true. * * This implies that it returns false if the contained conditions are either null or empty. * * @param element the object to be evaluated. * @return true if any of the contained conditions is true. */ @Override public boolean isTrue(Object element) { if(conditions != null) { for(Condition condition : conditions) { if(condition.isTrue(element)) { return true; } } } return false; }
/** * Returns false if any of the contained conditions is false. * * This implies that it returns true if the contained conditions are either null or empty. * * @param element the object to be evaluated. * @return false if any of the contained conditions is false. */ @Override public boolean isTrue(Object element) { if(conditions != null) { for(Condition condition : conditions) { if(!condition.isTrue(element)) { return false; } } } return true; }
/** * Returns false if any of the contained conditions is false. * * This implies that it returns true if the contained conditions are either null or empty. * * @param element the object to be evaluated. * @return false if any of the contained conditions is false. */ @Override public boolean isTrue(Object element) { if(conditions != null) { for(Condition condition : conditions) { if(!condition.isTrue(element)) { return false; } } } return true; }
/** * Returns true if any of the contained conditions is true. * * This implies that it returns false if the contained conditions are either null or empty. * * @param element the object to be evaluated. * @return true if any of the contained conditions is true. */ @Override public boolean isTrue(Object element) { if(conditions != null) { for(Condition condition : conditions) { if(condition.isTrue(element)) { return true; } } } return false; }
return condition.isTrue(o);
if(current != null && condition.isTrue(current))
if(current != null && condition.isTrue(current))