- 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 protectedZ()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Longabs(Long a)Longadd(Long a, Long b)Longcombine(Long a, Long u, Long b, Long v)intcompare(Long a, Long b)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.Longmax(Long a, Long b)Longmin(Long a, Long b)Longmultiply(Long a, Long b)Longopposite(Long a)static Zring()Zscalar()Longsubtract(Long a, Long b)StringtoString()Longunit()Longzero()-
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
-
scalar
public Z scalar()
- Specified by:
scalarin interfaceVectorModule<Long,Long>
-
zero
public final Long zero()
-
combine
public Long combine(Long a, Long u, Long b, Long v)
- Specified by:
combinein interfaceVectorModule<Long,Long>
-
abs
public final Long abs(Long a)
- Specified by:
absin interfaceOrderedRing<Long>
-
compare
public final int compare(Long a, Long b)
- Specified by:
comparein interfaceComparator<Long>- Specified by:
comparein interfaceOrderedRing<Long>
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
ring
public static Z ring()
-
-