@Test void testNewInstanceWithGapHigherThanSequenceNotAllowed() { assertThrows(Exception.class, () -> GapAwareTrackingToken.newInstance(9L, asList(1L, 5L, 12L))); }
public static GapAwareTrackingToken newInstance(long index, Collection<Long> gaps) { return new GapAwareTrackingToken(index, gaps); }
GapAwareTrackingToken implements TrackingToken, Serializable { public static GapAwareTrackingToken newInstance(long index, Collection<Long> gaps) { return new GapAwareTrackingToken(index, gaps); } }
GapAwareTrackingToken implements TrackingToken, Serializable { public static GapAwareTrackingToken newInstance(long index, Collection<Long> gaps) { return new GapAwareTrackingToken(index, gaps); } @JsonCreator @ConstructorProperties({"index", "gaps"})  GapAwareTrackingToken(@JsonProperty("index") long index, @JsonProperty("gaps") Collection<Long> gaps); private  GapAwareTrackingToken(long index, SortedSet<Long> gaps, long gapTruncationIndex); }
GapAwareTrackingToken implements TrackingToken, Serializable { public static GapAwareTrackingToken newInstance(long index, Collection<Long> gaps) { return new GapAwareTrackingToken(index, gaps); } @JsonCreator @ConstructorProperties({"index", "gaps"})  GapAwareTrackingToken(@JsonProperty("index") long index, @JsonProperty("gaps") Collection<Long> gaps); private  GapAwareTrackingToken(long index, SortedSet<Long> gaps, long gapTruncationIndex); static GapAwareTrackingToken newInstance(long index, Collection<Long> gaps); GapAwareTrackingToken advanceTo(long index, int maxGapOffset); GapAwareTrackingToken withGapsTruncatedAt(long truncationPoint); long getIndex(); SortedSet<Long> getGaps(); @Override GapAwareTrackingToken lowerBound(TrackingToken other); @Override TrackingToken upperBound(TrackingToken otherToken); @Override boolean covers(TrackingToken other); boolean hasGaps(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override OptionalLong position(); }
GapAwareTrackingToken implements TrackingToken, Serializable { public static GapAwareTrackingToken newInstance(long index, Collection<Long> gaps) { return new GapAwareTrackingToken(index, gaps); } @JsonCreator @ConstructorProperties({"index", "gaps"})  GapAwareTrackingToken(@JsonProperty("index") long index, @JsonProperty("gaps") Collection<Long> gaps); private  GapAwareTrackingToken(long index, SortedSet<Long> gaps, long gapTruncationIndex); static GapAwareTrackingToken newInstance(long index, Collection<Long> gaps); GapAwareTrackingToken advanceTo(long index, int maxGapOffset); GapAwareTrackingToken withGapsTruncatedAt(long truncationPoint); long getIndex(); SortedSet<Long> getGaps(); @Override GapAwareTrackingToken lowerBound(TrackingToken other); @Override TrackingToken upperBound(TrackingToken otherToken); @Override boolean covers(TrackingToken other); boolean hasGaps(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override OptionalLong position();  }