SerialNumberLongTypepublic final class SerialNumber48 extends Object implements SerialNumberLongType
| Modifier and Type | Method | Description |
|---|---|---|
long |
add(long s0,
long s1) |
|
int |
bits() |
|
long |
compare(long s0,
long s1) |
Compare the serial numbers
s0 and s1. |
long |
distance(long s0,
long s1) |
Calculate the signed distance between
s0 and s1. |
static SerialNumberLongType |
get() |
|
boolean |
inRange(long s0) |
Determine serial number validity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdistanceUnsignedpublic static SerialNumberLongType get()
public long add(long s0,
long s1)
add in interface SerialNumberLongTypes0 - A serial numbers1 - A serial numbers0 + s1public int bits()
bits in interface SerialNumberLongTypepublic long distance(long s0,
long s1)
SerialNumberLongTypes0 and s1.distance in interface SerialNumberLongTypes0 - A serial numbers1 - A serial numberpublic long compare(long s0,
long s1)
SerialNumberLongTypes0 and s1.compare in interface SerialNumberLongTypes0 - A serial numbers1 - A serial number0 if the serial numbers are equal, a value less than
0 if s0 < s1, or a value greater than 0 if s0 > s1public boolean inRange(long s0)
SerialNumberLongTypeinRange in interface SerialNumberLongTypes0 - A serial numbertrue iff s0 is in the range [0, (2 ^ bits())
- 1]Copyright © 2017 <code@io7m.com> http://io7m.com