@Test public void encode() { assertThat(new Revision(0, 0).toString()).isEqualTo("0000000000000-0000000000000"); assertThat(new Revision(1, 2).toString()).isEqualTo("0000000000001-0000000000002"); assertThat(new Revision(3, 4).toString()).isEqualTo("0000000000003-0000000000004"); assertThat(new Revision(5, 6).toString()).isEqualTo("0000000000005-0000000000006"); assertThat(new Revision(7, 8).toString()).isEqualTo("0000000000007-0000000000008"); assertThat(new Revision(9, 10).toString()).isEqualTo("0000000000009-000000000000A"); assertThat(new Revision(11, 12).toString()).isEqualTo("000000000000B-000000000000C"); assertThat(new Revision(13, 14).toString()).isEqualTo("000000000000D-000000000000E"); assertThat(new Revision(15, 16).toString()).isEqualTo("000000000000F-000000000000G"); assertThat(new Revision(17, 18).toString()).isEqualTo("000000000000H-000000000000J"); assertThat(new Revision(19, 20).toString()).isEqualTo("000000000000K-000000000000M"); assertThat(new Revision(21, 22).toString()).isEqualTo("000000000000N-000000000000P"); assertThat(new Revision(23, 24).toString()).isEqualTo("000000000000Q-000000000000R"); assertThat(new Revision(25, 26).toString()).isEqualTo("000000000000S-000000000000T"); assertThat(new Revision(27, 28).toString()).isEqualTo("000000000000V-000000000000W"); assertThat(new Revision(29, 30).toString()).isEqualTo("000000000000X-000000000000Y"); assertThat(new Revision(31, 32).toString()).isEqualTo("000000000000Z-0000000000010"); assertThat(new Revision(33, 34).toString()).isEqualTo("0000000000011-0000000000012"); assertThat(new Revision(-1, -1).toString()).isEqualTo("FZZZZZZZZZZZZ-FZZZZZZZZZZZZ"); }
@Override public String toString() { return toString(timeSeq) + "-" + toString(node); }
Revision implements Comparable<Revision> { @Override public String toString() { return toString(timeSeq) + "-" + toString(node); } }
Revision implements Comparable<Revision> { @Override public String toString() { return toString(timeSeq) + "-" + toString(node); } Revision(@Nonnull String rev);  Revision();  Revision(long node);  Revision(long timeSeq, long node); }
Revision implements Comparable<Revision> { @Override public String toString() { return toString(timeSeq) + "-" + toString(node); } Revision(@Nonnull String rev);  Revision();  Revision(long node);  Revision(long timeSeq, long node); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(Revision other); @Override String toString(); static int compareUnsigned(long x, long y); static long newUniqueTime(); static long newUniqueTime(final long currentTimeMillis); static long toLong(@Nonnull String str); @Nonnull static String toString(long val); }
Revision implements Comparable<Revision> { @Override public String toString() { return toString(timeSeq) + "-" + toString(node); } Revision(@Nonnull String rev);  Revision();  Revision(long node);  Revision(long timeSeq, long node); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(Revision other); @Override String toString(); static int compareUnsigned(long x, long y); static long newUniqueTime(); static long newUniqueTime(final long currentTimeMillis); static long toLong(@Nonnull String str); @Nonnull static String toString(long val); static final Revision MIN_VALUE; static final Revision MAX_VALUE; static final long NODE; final long timeSeq; final long node; }