IsXMoreThanY
See javadoc - uk.gov.gchq.koryphe.impl.predicate.IsXMoreThanY
Available since Koryphe version 1.0.0
Checks the first comparable is more than the second comparable
Examples
Is x more than y
Java
JSON
Full JSON
Python
final IsXMoreThanY function = new IsXMoreThanY();
{
"class" : "IsXMoreThanY"
}
{
"class" : "uk.gov.gchq.koryphe.impl.predicate.IsXMoreThanY"
}
g.IsXMoreThanY()
Input type:
java.lang.Comparable, java.lang.Comparable
Example inputs:
Input Type | Input | Result |
---|---|---|
[java.lang.Integer, java.lang.Integer] | [1, 5] | false |
[java.lang.Integer, java.lang.Integer] | [5, 5] | false |
[java.lang.Integer, java.lang.Integer] | [10, 5] | true |
[java.lang.Long, java.lang.Integer] | [10, 5] | false |
[java.lang.Long, java.lang.Long] | [1, 5] | false |
[java.lang.Long, java.lang.Long] | [5, 5] | false |
[java.lang.Long, java.lang.Long] | [10, 5] | true |
[java.lang.Integer, java.lang.Long] | [10, 5] | false |
[java.lang.String, java.lang.String] | [bcd, cde] | false |
[java.lang.String, java.lang.String] | [bcd, abc] | true |
[java.lang.String, java.lang.Integer] | [10, 5] | false |