IsXLessThanY

See javadoc - uk.gov.gchq.koryphe.impl.predicate.IsXLessThanY

Available since Koryphe version 1.0.0

Checks the first comparable is less than the second comparable

Examples

Is x less than y

Java
JSON
Full JSON
Python
final IsXLessThanY function = new IsXLessThanY();
{
  "class" : "IsXLessThanY"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.predicate.IsXLessThanY"
}
g.IsXLessThanY()

Input type:

java.lang.Comparable, java.lang.Comparable

Example inputs:

Input TypeInputResult
[java.lang.Integer, java.lang.Integer][1, 5]true
[java.lang.Integer, java.lang.Integer][5, 5]false
[java.lang.Integer, java.lang.Integer][10, 5]false
[java.lang.Long, java.lang.Integer][1, 5]false
[java.lang.Long, java.lang.Long][1, 5]true
[java.lang.Long, java.lang.Long][5, 5]false
[java.lang.Long, java.lang.Long][10, 5]false
[java.lang.Integer, java.lang.Long][1, 5]false
[java.lang.String, java.lang.String][bcd, cde]true
[java.lang.String, java.lang.String][bcd, abc]false
[java.lang.String, java.lang.Integer][1, 5]false

results matching ""

    No results matching ""