@Test void testInitializationWithNullGaps() { GapAwareTrackingToken token = new GapAwareTrackingToken(10, null); assertNotNull(token.getGaps()); assertEquals(0, token.getGaps().size()); }
public SortedSet<Long> getGaps() { return Collections.unmodifiableSortedSet(gaps); }
GapAwareTrackingToken implements TrackingToken, Serializable { public SortedSet<Long> getGaps() { return Collections.unmodifiableSortedSet(gaps); } }
GapAwareTrackingToken implements TrackingToken, Serializable { public SortedSet<Long> getGaps() { return Collections.unmodifiableSortedSet(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 SortedSet<Long> getGaps() { return Collections.unmodifiableSortedSet(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 SortedSet<Long> getGaps() { return Collections.unmodifiableSortedSet(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();  }