@Test void testPosition() { GapAwareTrackingToken token = GapAwareTrackingToken.newInstance(15, asList(14L, 9L, 8L)); assertEquals(15L, token.position().getAsLong()); }
@Override public OptionalLong position() { return OptionalLong.of(index); }
GapAwareTrackingToken implements TrackingToken, Serializable { @Override public OptionalLong position() { return OptionalLong.of(index); } }
GapAwareTrackingToken implements TrackingToken, Serializable { @Override public OptionalLong position() { return OptionalLong.of(index); } @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 { @Override public OptionalLong position() { return OptionalLong.of(index); } @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 { @Override public OptionalLong position() { return OptionalLong.of(index); } @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();  }