@SuppressWarnings("unchecked")
        T get(final int index) {
            if (index >= this.pos || index < this.offset) {
                throw new IndexOutOfBoundsException("Index=" + index + ", Offset=" + this.offset + ", Pos=" + this.pos);
            }
            return (T) this.elements[index];
        }
A recyclable segment.
@author boyan(boyan@antfin.com)

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