public class NotPredicate extends Predicate
NotPredicate wraps NotPredicate to
provide additional functionality like serializing to and from a Map and JSON formatted data.
See DelegatedSinglePredicateContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of this
Predicate implementation |
| Constructor and Description |
|---|
NotPredicate(org.apache.commons.collections.Predicate predicate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
evaluate(Object o) |
static NotPredicate |
fromMap(Map<String,Object> map)
Creates a new
NotPredicate using the given Map of data. |
org.apache.commons.collections.Predicate[] |
getPredicates() |
int |
hashCode() |
Map<String,Object> |
toMap()
|
public static final String NAME
Predicate implementationpublic NotPredicate(org.apache.commons.collections.Predicate predicate)
predicate - the predicate to negatepublic static NotPredicate fromMap(Map<String,Object> map)
NotPredicate using the given Map of data.
It is expected that the map contains a single Map.Entry where the key name
is "not" and the value is a Map representing the contained predicate.
NotPredicatepublic int hashCode()
public boolean equals(Object obj)
public boolean evaluate(Object o)
evaluate in interface org.apache.commons.collections.Predicatepublic org.apache.commons.collections.Predicate[] getPredicates()
getPredicates in interface org.apache.commons.collections.functors.PredicateDecoratorCopyright © 2022 Apache Software Foundation. All rights reserved.