Interface SequenceChain<Value_,Difference_ extends Comparable<Difference_>>
- Type Parameters:
Value_- The type of value in the sequence.Difference_- The type of difference between values in the sequence.
- All Known Implementing Classes:
ConsecutiveSetTree
public interface SequenceChain<Value_,Difference_ extends Comparable<Difference_>>
Contains info regarding the consecutive sequences and breaks in a collection of points.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the first break between two consecutive sequences of values.Returns the first sequence of consecutive values.Returns the last break between two consecutive sequences of values.Returns the last sequence of consecutive values.
-
Method Details
-
getConsecutiveSequences
Collection<Sequence<Value_,Difference_>> getConsecutiveSequences()- Returns:
- never null; the sequences contained in the collection in ascending order.
-
getBreaks
Collection<Break<Value_,Difference_>> getBreaks()- Returns:
- never null; the breaks contained in the collection in ascending order.
-
getFirstSequence
Sequence<Value_,Difference_> getFirstSequence()Returns the first sequence of consecutive values.- Returns:
- null if there are no sequences
-
getLastSequence
Sequence<Value_,Difference_> getLastSequence()Returns the last sequence of consecutive values.- Returns:
- null if there are no sequences
-
getFirstBreak
Break<Value_,Difference_> getFirstBreak()Returns the first break between two consecutive sequences of values.- Returns:
- null if there are less than two sequences
-
getLastBreak
Break<Value_,Difference_> getLastBreak()Returns the last break between two consecutive sequences of values.- Returns:
- null if there are less than two sequences
-