@Override
    public int size() {
        int size = endOffset - startOffset;
        if (size < 0) {
            size += data.length;
        }
        return size;
    }
@ Override public int size ( ) { int size = endOffset - startOffset ; if ( size < 0 ) { size += data . length ; } return size ; }
{@inheritDoc }