class Terms {

    synchronized void truncate( long fromIndex )
    {
        if ( fromIndex < 0 || fromIndex < min )
        {
            throw new IllegalStateException( "Cannot truncate a negative index. Tried to truncate from " + fromIndex );
        }

        max = fromIndex - 1;

        int newSize = size;
        while ( newSize > 0 && indexes[newSize - 1] >= fromIndex )
        {
            newSize--;
        }

        setSize( newSize );
    }

      Terms( long prevIndex, long prevTerm );

}