code: public static final SegmentWithRange encode(final SegmentRange segmentRange) {
          return new SegmentWithRange(encode(segmentRange.getSegmentId()), segmentRange.getMinKey(), segmentRange
                  .getMaxKey());
      }
docs: Helper to convert SegmentRange to SegmentWithRange.
  
  @param segmentRange segmentRange
  @return SegmentWithRange