private void clear(long time) {
        if (time < lastTime.get() + size) {
            return;
        }
        int index = (int) (time % size);
        for (int i = 0; i < size; i++) {
            if (i != index) {
                counts.set(i, 0);
            }
        }
    }
private void clear ( long time ) { if ( time < lastTime . get ( ) + size ) { return ; } int index = ( int ) ( time % size ) ; for ( int i = 0 ; i < size ; i ++ ) { if ( i != index ) { counts . set ( i , 0 ) ; } } }
clear prev data