- java.lang.Object
-
- swim.math.Z
-
- All Implemented Interfaces:
Comparator<Long>
,Debug
,OrderedRing<Long>
,Ring<Long>
,VectorModule<Long,Long>
public class Z extends Object implements VectorModule<Long,Long>, OrderedRing<Long>, Debug
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Z()
-
Method Summary
Modifier and Type Method Description Long
abs(Long a)
Long
add(Long a, Long b)
Long
combine(Long a, Long u, Long b, Long v)
int
compare(Long a, Long b)
void
debug(Output<?> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.Long
max(Long a, Long b)
Long
min(Long a, Long b)
Long
multiply(Long a, Long b)
Long
opposite(Long a)
static Z
ring()
Z
scalar()
Long
subtract(Long a, Long b)
String
toString()
Long
unit()
Long
zero()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
ring
public static Z ring()
-
scalar
public Z scalar()
- Specified by:
scalar
in interfaceVectorModule<Long,Long>
-
zero
public final Long zero()
-
combine
public Long combine(Long a, Long u, Long b, Long v)
- Specified by:
combine
in interfaceVectorModule<Long,Long>
-
abs
public final Long abs(Long a)
- Specified by:
abs
in interfaceOrderedRing<Long>
-
compare
public final int compare(Long a, Long b)
- Specified by:
compare
in interfaceComparator<Long>
- Specified by:
compare
in interfaceOrderedRing<Long>
-
debug
public void debug(Output<?> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
-