Package fj
Interface Equal.Definition<A>
-
- All Known Subinterfaces:
Equal.AltDefinition<A>
,Ord.AltDefinition<A>
,Ord.Definition<A>
public static interface Equal.Definition<A>
Primitives functions of Equal: minimal definition and overridable methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Equal<A>
equal()
Build an equal instance from this definition.F<A,java.lang.Boolean>
equal(A a)
default boolean
equal(A a1, A a2)
default <B> Equal.Definition<A>
then(F<A,B> f, Equal<B> eq)
Refine this equal definition, to tests equality of self and the mapped object in "and" manner.
-
-
-
Method Detail
-
then
default <B> Equal.Definition<A> then(F<A,B> f, Equal<B> eq)
Refine this equal definition, to tests equality of self and the mapped object in "and" manner.- Parameters:
f
- The function to map the original objecteq
- Equality for the mapped object- Returns:
- A new equal definition
- See Also:
equal()
-
equal
default Equal<A> equal()
Build an equal instance from this definition. to be called after some successivethen(F, Equal)
calls.
-
-