Interface Ord.Definition<A>
- All Superinterfaces:
Equal.Definition<A>, Semigroup.Definition<A>
- All Known Subinterfaces:
Ord.AltDefinition<A>
Primitives functions of Ord: minimal definition and overridable methods.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Adefault Orderingdefault Ord.Definition<A> dual()default booleandefault Amultiply1p(int n, A a) ord()Build an ord instance from this definition.default <B> Ord.Definition<A> Refine this ord definition: compares using self and if objects are equal compares using givenOrd.Methods inherited from interface Equal.Definition
equal, thenMethods inherited from interface Semigroup.Definition
sum
-
Method Details
-
compare
-
compare
-
equal
- Specified by:
equalin interfaceEqual.Definition<A>
-
equal
-
append
-
multiply1p
- Specified by:
multiply1pin interfaceSemigroup.Definition<A>
-
prepend
-
dual
- Specified by:
dualin interfaceSemigroup.Definition<A>
-
then
Refine this ord definition: compares using self and if objects are equal compares using givenOrd.- Parameters:
bOrd- Ord for subsequent comparison- Returns:
- A new ord definition.
- See Also:
-
ord
Build an ord instance from this definition. to be called after some successivethen(F, Ord)calls.
-