IsMoreThan

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

Available since Koryphe version 1.0.0

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( 
  or_equal_to=False, 
  value=5 
)

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( 
  or_equal_to=True, 
  value=5 
)

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( 
  or_equal_to=False, 
  value={'java.lang.Long': 5} 
)

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( 
  or_equal_to=False, 
  value="B" 
)

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 ""