IsTrue
See javadoc - uk.gov.gchq.koryphe.impl.predicate.IsTrue
Available since Koryphe version 1.0.0
Checks if an input is true
Examples
Is true
Java
JSON
Full JSON
Python
final IsTrue function = new IsTrue();
{
"class" : "IsTrue"
}
{
"class" : "uk.gov.gchq.koryphe.impl.predicate.IsTrue"
}
g.IsTrue()
Input type:
java.lang.Boolean
Example inputs:
Input Type | Input | Result |
---|---|---|
java.lang.Boolean | true | true |
java.lang.Boolean | false | false |
null | false | |
java.lang.String | true | ClassCastException: java.lang.String cannot be cast to java.lang.Boolean |