equals


Description:

public bool equals (Triple<A,B,C> other, EqualFunc<A> equal_a, EqualFunc<B> equal_b, EqualFunc<C> equal_c)

Returns whether this Triple is equal to another Triple. All three values must be equal.

Requires equality functions for all types because Vala generics use pointer comparison by default.

Example:

    var a = new Triple<string,string,string> ("x", "y", "z");
var b = new Triple<string,string,string> ("x", "y", "z");
assert (a.equals (b, GLib.str_equal, GLib.str_equal, GLib.str_equal));

Parameters:

other

the other Triple to compare.

equal_a

the equality function for the first type.

equal_b

the equality function for the second type.

equal_c

the equality function for the third type.

Returns:

true if all three values are equal.