Search in sources :

Example 1 with AreEqual

use of uk.gov.gchq.koryphe.impl.predicate.AreEqual in project gaffer-doc by gchq.

the class NotExample method areNotEqual.

public void areNotEqual() {
    // ---------------------------------------------------------
    final Not function = new Not<>(new AreEqual());
    // ---------------------------------------------------------
    runExample(function, null, new Tuple2<>(1, 1.0), new Tuple2<>(1, 2), new Tuple2<>(2.5, 2.5), new Tuple2<>("", null), new Tuple2<>("abc", "abc"));
}
Also used : Not(uk.gov.gchq.koryphe.impl.predicate.Not) AreEqual(uk.gov.gchq.koryphe.impl.predicate.AreEqual)

Example 2 with AreEqual

use of uk.gov.gchq.koryphe.impl.predicate.AreEqual in project gaffer-doc by gchq.

the class AreEqualExample method areEqual.

public void areEqual() {
    // ---------------------------------------------------------
    final AreEqual function = new AreEqual();
    // ---------------------------------------------------------
    runExample(function, null, new Tuple2<>(1, 1.0), new Tuple2<>(2.5, 2.5), new Tuple2<>("", null), new Tuple2<>("abc", "abc"));
}
Also used : AreEqual(uk.gov.gchq.koryphe.impl.predicate.AreEqual)

Aggregations

AreEqual (uk.gov.gchq.koryphe.impl.predicate.AreEqual)2 Not (uk.gov.gchq.koryphe.impl.predicate.Not)1