private void clean(int from, int to) {
        for (int i = from; i < to; i++) {
            ByteBuffer bb = segments.get(i);
            cleanMappedByteBuffer(bb);
            segments.set(i, null);
        }
    }
private void clean ( int from , int to ) { for ( int i = from ; i < to ; i ++ ) { ByteBuffer bb = segments . get ( i ) ; cleanMappedByteBuffer ( bb ) ; segments . set ( i , null ) ; } }
Cleans up MappedByteBuffers. Be sure you bring the segments list in a consistent state
afterwards.
<p>

@param from inclusive
@param to   exclusive