IsLongerThan

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

Available since Koryphe version 1.3.0

Examples

Test inputs

This will test whether each input has a size/length attribute greater than 5.

Java
JSON
Full JSON
Python
final IsLongerThan predicate = new IsLongerThan(5);
{
  "class" : "IsLongerThan",
  "minLength" : 5,
  "orEqualTo" : false
}
{
  "class" : "uk.gov.gchq.koryphe.impl.predicate.IsLongerThan",
  "minLength" : 5,
  "orEqualTo" : false
}
g.IsLongerThan( 
  min_length=5, 
  or_equal_to=False 
)

Input type:

java.lang.Object

Example inputs:

Input TypeInputResult
java.lang.StringtestStringtrue
java.lang.StringaTestfalse
[Ljava.lang.String;[Ljava.lang.String;@7704cb61false
[Ljava.lang.String;[Ljava.lang.String;@4f300d19true
java.util.Arrays$ArrayList[0, 1, 2, 3, 4, 5]true

Test inputs with equal to set

This will test whether each input has a size/length attribute greater than, OR equal to 5.

Java
JSON
Full JSON
Python
final IsLongerThan predicate = new IsLongerThan(5, true);
{
  "class" : "IsLongerThan",
  "minLength" : 5,
  "orEqualTo" : true
}
{
  "class" : "uk.gov.gchq.koryphe.impl.predicate.IsLongerThan",
  "minLength" : 5,
  "orEqualTo" : true
}
g.IsLongerThan( 
  or_equal_to=True, 
  min_length=5 
)

Input type:

java.lang.Object

Example inputs:

Input TypeInputResult
java.lang.Stringtestfalse
java.lang.StringtestStringtrue
java.lang.StringaTesttrue
[Ljava.lang.String;[Ljava.lang.String;@15e2849dtrue
[Ljava.lang.String;[Ljava.lang.String;@3853151true
java.util.Arrays$ArrayList[0, 1, 2, 3, 4, 5]true

results matching ""

    No results matching ""