@Test public void testEqualLSNCreateByDifferentWay() throws Exception { LogSequenceNumber first = LogSequenceNumber.valueOf("0/15D690F8"); LogSequenceNumber second = LogSequenceNumber.valueOf(366383352L); assertThat("LSN creates as 64-bit number and as string where each 8-bit print in hex form " + "via slash represent same position in WAL should be equals", first, equalTo(second) ); }
public static LogSequenceNumber valueOf(long value) { return new LogSequenceNumber(value); }
LogSequenceNumber { public static LogSequenceNumber valueOf(long value) { return new LogSequenceNumber(value); } }
LogSequenceNumber { public static LogSequenceNumber valueOf(long value) { return new LogSequenceNumber(value); } private  LogSequenceNumber(long value); }
LogSequenceNumber { public static LogSequenceNumber valueOf(long value) { return new LogSequenceNumber(value); } private  LogSequenceNumber(long value); static LogSequenceNumber valueOf(long value); static LogSequenceNumber valueOf(String strValue); long asLong(); String asString(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
LogSequenceNumber { public static LogSequenceNumber valueOf(long value) { return new LogSequenceNumber(value); } private  LogSequenceNumber(long value); static LogSequenceNumber valueOf(long value); static LogSequenceNumber valueOf(String strValue); long asLong(); String asString(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final LogSequenceNumber INVALID_LSN; }