public class Operator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Operator.Contains
Test if an object is contained in a collection.
|
static class |
Operator.Equal
Test two objects for equality.
|
static class |
Operator.Excludes
Test if an object is excluded from a collection.
|
static class |
Operator.Greater
Test two objects for greater than.
|
static class |
Operator.GreaterOrEqual
Test two objects for greater or equal.
|
static class |
Operator.InstanceOf
Test if an object is instanceof a class.
|
static class |
Operator.Less
Test two objects for less than.
|
static class |
Operator.LessOrEqual
Test two objects for less or equal.
|
static class |
Operator.Matches
Requires strings as both parameters.
|
static class |
Operator.NotEqual
Test two objects for non-equality.
|
static class |
Operator.StartsWith
Requires strings as both parameters.
|
Constructor and Description |
---|
Operator() |
Modifier and Type | Method and Description |
---|---|
protected static int |
compare(java.lang.Object val1,
java.lang.Object val2)
Compare two values.
|
protected static boolean |
contains(java.lang.Object val1,
java.lang.Object val2)
Test if a collection contains a value.
|
protected static int compare(java.lang.Object val1, java.lang.Object val2)
val1
- The first value.val2
- The second value.java.lang.ClassCastException
- when the values are not comparable.protected static boolean contains(java.lang.Object val1, java.lang.Object val2)
val1
- The collection.val2
- The value to test.