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 TypeInputResult
java.lang.Integer1false
java.lang.Integer5false
java.lang.Integer10true

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 TypeInputResult
java.lang.Integer1false
java.lang.Integer5true
java.lang.Integer10true

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 TypeInputResult
java.lang.Integer1false
java.lang.Long1false
java.lang.Integer5false
java.lang.Long5false
java.lang.Integer10false
java.lang.Long10true
java.lang.Stringabcfalse

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 TypeInputResult
java.lang.Integer1false
java.lang.StringAfalse
java.lang.StringBfalse
java.lang.StringCtrue

results matching ""

    No results matching ""