public T get(int index) {
        index += this.firstOffset;
        return this.segments.get(index >> SEGMENT_SHIFT).get(index & (SEGMENT_SIZE - 1));
    }
A recyclable segment.
@author boyan(boyan@antfin.com)

@param <T>
jraft-core/src/main/java/com/alipay/sofa/jraft/util/SegmentList.java