IsMoreThan
See javadoc - uk.gov.gchq.koryphe.impl.predicate.IsMoreThan
Available since Koryphe version 1.0.0
Checks if a comparable is more than a provided value
Examples
Is more than 5
Java
JSON
Full JSON
Python
final IsMoreThan function = new IsMoreThan(5);
{
"class" : "IsMoreThan",
"orEqualTo" : false,
"value" : 5
}
{
"class" : "uk.gov.gchq.koryphe.impl.predicate.IsMoreThan",
"orEqualTo" : false,
"value" : 5
}
g.IsMoreThan(
value=5,
or_equal_to=False
)
Input type:
java.lang.Comparable
Example inputs:
Input Type | Input | Result |
---|---|---|
java.lang.Integer | 1 | false |
java.lang.Integer | 5 | false |
java.lang.Integer | 10 | true |
Is more than or equal to 5
Java
JSON
Full JSON
Python
final IsMoreThan function = new IsMoreThan(5, true);
{
"class" : "IsMoreThan",
"orEqualTo" : true,
"value" : 5
}
{
"class" : "uk.gov.gchq.koryphe.impl.predicate.IsMoreThan",
"orEqualTo" : true,
"value" : 5
}
g.IsMoreThan(
value=5,
or_equal_to=True
)
Input type:
java.lang.Comparable
Example inputs:
Input Type | Input | Result |
---|---|---|
java.lang.Integer | 1 | false |
java.lang.Integer | 5 | true |
java.lang.Integer | 10 | true |
Is more than a long 5
Java
JSON
Full JSON
Python
final IsMoreThan function = new IsMoreThan(5L);
{
"class" : "IsMoreThan",
"orEqualTo" : false,
"value" : {
"Long" : 5
}
}
{
"class" : "uk.gov.gchq.koryphe.impl.predicate.IsMoreThan",
"orEqualTo" : false,
"value" : {
"java.lang.Long" : 5
}
}
g.IsMoreThan(
value={'java.lang.Long': 5},
or_equal_to=False
)
Input type:
java.lang.Comparable
Example inputs:
Input Type | Input | Result |
---|---|---|
java.lang.Integer | 1 | false |
java.lang.Long | 1 | false |
java.lang.Integer | 5 | false |
java.lang.Long | 5 | false |
java.lang.Integer | 10 | false |
java.lang.Long | 10 | true |
java.lang.String | abc | false |
Is more than a string
Java
JSON
Full JSON
Python
final IsMoreThan function = new IsMoreThan("B");
{
"class" : "IsMoreThan",
"orEqualTo" : false,
"value" : "B"
}
{
"class" : "uk.gov.gchq.koryphe.impl.predicate.IsMoreThan",
"orEqualTo" : false,
"value" : "B"
}
g.IsMoreThan(
value="B",
or_equal_to=False
)
Input type:
java.lang.Comparable
Example inputs:
Input Type | Input | Result |
---|---|---|
java.lang.Integer | 1 | false |
java.lang.String | A | false |
java.lang.String | B | false |
java.lang.String | C | true |