Home | History | Annotate | Download | only in DNS

Lines Matching full:serial

6  * Helper functions for doing serial arithmetic.  These should be used when
7 * setting/checking SOA serial numbers. SOA serial number arithmetic is
13 public final class Serial {
18 Serial() {
22 * Compares two numbers using serial arithmetic. The numbers are assumed
45 * Increments a serial number. The number is assumed to be a 32 bit unsigned
48 * @param serial The serial number
49 * @return The incremented serial number
50 * @throws IllegalArgumentException serial is out of range
53 increment(long serial) {
54 if (serial < 0 || serial > MAX32)
55 throw new IllegalArgumentException(serial + " out of range");
56 if (serial == MAX32)
58 return serial + 1;