public class IsOperator extends Object
if (is("bob").in([anarray])) {
// "bob" is contained in [anarray]
}
You can pass primitive java object, or Tuples.| Constructor and Description |
|---|
IsOperator(Object o)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
in(Object... objects)
Check if the value is in one of the argument.
|
boolean |
in(Tuple tuple)
Check if the value is in this tuple.
|
boolean |
inside(Tuple tuple)
Deprecated.
prefer
in(Tuple) |
public IsOperator(Object o)
o - the target object@Deprecated public boolean inside(Tuple tuple)
in(Tuple)tuple - a tuple containing an array or a setpublic boolean in(Object... objects)
objects - a variable number of objectspublic boolean in(Tuple tuple)
tuple - the set or array tupleCopyright © 2023. All rights reserved.