class ContinuousSpaceSegment implements Comparable<ContinuousSpaceSegment<C, V>> {

    @Override
    public int compareTo(ContinuousSpaceSegment<C, V> other) {
        int fromComparison = segmentStart.compareTo(other.segmentStart);
        if (fromComparison == 0) {
            return segmentEnd.compareTo(other.segmentEnd);
        }
        return fromComparison;
    }

    public  ContinuousSpaceSegment(C from, C to, V value);
    public  ContinuousSpaceSegment(RangeBoundary<C> from, RangeBoundary<C> to, V value);
    public  ContinuousSpaceSegment(ContinuousSpaceSegment<C, V> other, V value);

}