core/src/main/java/org/hitogo/core/HitogoController.java
private void internalCloseByState(@NonNull Iterator<AlertImpl> it, int state, @IntRange(from = 0) long currentLongest) {
        while (it.hasNext()) {
            AlertImpl object = it.next();
            if (object != null && object.isAttached() && object.getState() == state) {
                if (object.getAnimationDuration() > currentLongest) {
                    currentLongest = object.getAnimationDuration();
                }

                internalMakeInvisible(object);
                it.remove();
            }
        }
    }
/**
     * Closes all alerts stored inside this controller by the given int value. <b>Internal use only.</b>
     *
     * @param it             Iterator object that will be used to close it's <b>attached</b> alerts
     * @param state          Int value which is used as a reference to close the alerts.
     * @param currentLongest Time in ms of the longest closing animation. That value can be used to
     *                       delay certain action until all alerts have been closed.
     * @since 1.0.0
     */
Closes all alerts stored inside this controller by the given int value. Internal use only.
@param it             Iterator object that will be used to close it's attached alerts
@param state          Int value which is used as a reference to close the alerts.
@param currentLongest Time in ms of the longest closing animation. That value can be used to
delay certain action until all alerts have been closed.
Closes all alerts stored inside this controller by the given int value . Internal use only . @param it Iterator object that will be used to close it ' s attached alerts @param state Int value which is used as a reference to close the alerts . @param currentLongest Time in ms of the longest closing animation . That value can be used to delay certain action until all alerts have been closed .
private void internalCloseByState(@NonNull Iterator<AlertImpl> it, int state, @IntRange(from = 0) long currentLongest) {
        while (it.hasNext()) {
            AlertImpl object = it.next();
            if (object != null && object.isAttached() && object.getState() == state) {
                if (object.getAnimationDuration() > currentLongest) {
                    currentLongest = object.getAnimationDuration();
                }
                internalMakeInvisible(object);
                it.remove();
            }
        }
    }
private void internalCloseByState ( @ NonNull Iterator < AlertImpl > it , int state , @ IntRange ( from = 0 ) long currentLongest ) { while ( it . hasNext ( ) ) { AlertImpl object = it . next ( ) ; if ( object != null && object . isAttached ( ) && object . getState ( ) == state ) { if ( object . getAnimationDuration ( ) > currentLongest ) { currentLongest = object . getAnimationDuration ( ) ; } internalMakeInvisible ( object ) ; it . remove ( ) ; } } }
Closes all alerts stored inside this controller by the given int value.
Closes all alerts stored inside this controller by the given int value .