/** * Return a predicate that will return true if the given attribute is not null and not empty. * * @param attribute The attribute to check whether it exists or not. */ public static Predicate exists(final ExchangeAttribute attribute) { return new ExistsPredicate(attribute); }
@Override public Predicate build(final Map<String, Object> config) { ExchangeAttribute value = (ExchangeAttribute) config.get("value"); return new ExistsPredicate(value); } }
/** * Return a predicate that will return true if the given attribute is not null and not empty. * * @param attribute The attribute to check whether it exists or not. */ public static Predicate exists(final ExchangeAttribute attribute) { return new ExistsPredicate(attribute); }
/** * Return a predicate that will return true if the given attribute is not null and not empty. * * @param attribute The attribute to check whether it exists or not. */ public static Predicate exists(final ExchangeAttribute attribute) { return new ExistsPredicate(attribute); }
@Override public Predicate build(final Map<String, Object> config) { ExchangeAttribute value = (ExchangeAttribute) config.get("value"); return new ExistsPredicate(value); } }
@Override public Predicate build(final Map<String, Object> config) { ExchangeAttribute value = (ExchangeAttribute) config.get("value"); return new ExistsPredicate(value); } }