AreEqual

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

Available since Koryphe version 1.0.0

Returns true if the two inputs are equal

Examples

Are equal

Java
JSON
Full JSON
Python
final AreEqual function = new AreEqual();
{
  "class" : "AreEqual"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.predicate.AreEqual"
}
g.AreEqual()

Input type:

java.lang.Object, java.lang.Object

Example inputs:

Input TypeInputResult
[java.lang.Integer, java.lang.Double][1, 1.0]false
[java.lang.Double, java.lang.Double][2.5, 2.5]true
[java.lang.String, ][, null]false
[java.lang.String, java.lang.String][abc, abc]true

results matching ""

    No results matching ""