@Test public void testIsRightAfter() { SerialId testSerialId0 = new SerialId("bob", 3, 6L, 12); SerialId testSerialId1 = new SerialId("bob", 3, 6L, 13); assertTrue(testSerialId1.isRightAfter(testSerialId0)); assertFalse(testSerialId0.isRightAfter(testSerialId1)); }
public boolean isRightAfter (SerialId prev) { return (this.getSerialNumber() == prev.getSerialNumber() + 1); }
SerialId { public boolean isRightAfter (SerialId prev) { return (this.getSerialNumber() == prev.getSerialNumber() + 1); } }
SerialId { public boolean isRightAfter (SerialId prev) { return (this.getSerialNumber() == prev.getSerialNumber() + 1); } SerialId();  SerialId(String streamId, int bundleSize, 
         long bundleId, int recordId);  SerialId(String serialId);  SerialId(String streamId, 
         int bundleSize, long bundleId, int recordId,
         long serialNumber);  SerialId(JsonNode jsonNode); }
SerialId { public boolean isRightAfter (SerialId prev) { return (this.getSerialNumber() == prev.getSerialNumber() + 1); } SerialId();  SerialId(String streamId, int bundleSize, 
         long bundleId, int recordId);  SerialId(String serialId);  SerialId(String streamId, 
         int bundleSize, long bundleId, int recordId,
         long serialNumber);  SerialId(JsonNode jsonNode); int nextRecordId(); long nextSerialNumber(); SerialId nextSerialId(); synchronized long increment(); SerialId clone(); boolean isRightAfter(SerialId prev); boolean isRightBefore(SerialId next); String getStreamId(); SerialId setStreamId(String streamId); int getBundleSize(); SerialId setBundleSize(int bundleSize); long getBundleId(); SerialId setBundleId(long bundleId); SerialId addBundleId(long num); int getRecordId(); SerialId setRecordId(int recordId); SerialId addRecordId(int num); long getSerialNumber(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
SerialId { public boolean isRightAfter (SerialId prev) { return (this.getSerialNumber() == prev.getSerialNumber() + 1); } SerialId();  SerialId(String streamId, int bundleSize, 
         long bundleId, int recordId);  SerialId(String serialId);  SerialId(String streamId, 
         int bundleSize, long bundleId, int recordId,
         long serialNumber);  SerialId(JsonNode jsonNode); int nextRecordId(); long nextSerialNumber(); SerialId nextSerialId(); synchronized long increment(); SerialId clone(); boolean isRightAfter(SerialId prev); boolean isRightBefore(SerialId next); String getStreamId(); SerialId setStreamId(String streamId); int getBundleSize(); SerialId setBundleSize(int bundleSize); long getBundleId(); SerialId setBundleId(long bundleId); SerialId addBundleId(long num); int getRecordId(); SerialId setRecordId(int recordId); SerialId addRecordId(int num); long getSerialNumber(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }