@Immutable public final class ComparisonOperator extends Object
| Constructor and Description |
|---|
ComparisonOperator(String... symbols) |
ComparisonOperator(String[] symbols,
boolean multiValue) |
ComparisonOperator(String symbol,
boolean multiValue) |
ComparisonOperator(String symbol,
String altSymbol,
boolean multiValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getSymbol()
Returns the primary representation of this operator.
|
String[] |
getSymbols()
Returns all representations of this operator.
|
int |
hashCode() |
boolean |
isMultiValue()
Whether this operator may be used with multiple arguments.
|
String |
toString() |
public ComparisonOperator(String[] symbols, boolean multiValue)
symbols - Textual representation of this operator (e.g. =gt=); the first item
is primary representation, any others are alternatives. Must match
=[a-zA-Z]*=|[><]=?|!=.multiValue - Whether this operator may be used with multiple arguments. This is then
validated in NodesFactory.IllegalArgumentException - If the symbols is either null, empty,
or contain illegal symbols.public ComparisonOperator(String symbol, boolean multiValue)
ComparisonOperator(String[], boolean)public ComparisonOperator(String symbol, String altSymbol, boolean multiValue)
ComparisonOperator(String[], boolean)public ComparisonOperator(String... symbols)
ComparisonOperator(String[], boolean)public String getSymbol()
public String[] getSymbols()
public boolean isMultiValue()
Copyright © 2011–2016. All rights reserved.