public static final class NCIntentSolver.XNOR extends ArrayList<NCIntentSolver.Predicate> implements NCIntentSolver.Predicate
true
output only
when all of its constituent predicates produce the same (either false
or true
) results.Constructor and Description |
---|
XNOR(NCIntentSolver.Predicate... items)
Creates new XNOR-combinator with given items.
|
XNOR(String... exprs)
Creates new XNOR-combinator with given string-based
NCIntentSolver.RULE s:
new XNOR("id == x:time", "~GEO_KIND == CITY", "value %% ^[Ff]oo[Bb]ar$"); |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.lang3.tuple.Pair<Boolean,int[]> |
apply(NCToken tok) |
String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll
containsAll, equals, hashCode
parallelStream, stream
public XNOR(NCIntentSolver.Predicate... items)
OR
, AND
, NAND
,
NOR
, XOR
, XNOR
or RULE
item are allowed.items
- Items to XNOR combine.public XNOR(String... exprs)
NCIntentSolver.RULE
s:
new XNOR("id == x:time", "~GEO_KIND == CITY", "value %% ^[Ff]oo[Bb]ar$");
exprs
- List of whitespace separated string of parameter, its operation and value
for the NCIntentSolver.RULE
.public String toString()
toString
in class AbstractCollection<NCIntentSolver.Predicate>
Copyright © 2013-2019 NLPCraft Project. All rights reserved.