core/src/main/java/org/hitogo/core/HitogoController.java
private long internalCloseByAlert(@NonNull Iterator<AlertImpl> it, final @NonNull Alert alert) {
        long longestClosingAnim = 0;

        while (it.hasNext()) {
            AlertImpl object = it.next();
            if (object.equals(alert)) {
                if (object.getAnimationDuration() > longestClosingAnim) {
                    longestClosingAnim = object.getAnimationDuration();
                }

                internalMakeInvisible((AlertImpl) alert);
                it.remove();
            }
        }

        return longestClosingAnim;
    }
/**
     * Closes all alerts stored inside this controller by the given alert. <b>Internal use only.</b>
     *
     * @param it    Iterator object that will be used to close it's <b>attached</b> alerts
     * @param alert Alert which is used as a reference to close the alerts.
     * @return 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 alert. Internal use only.
@param it    Iterator object that will be used to close it's attached alerts
@param alert Alert which is used as a reference to close the alerts.
@return 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 alert . Internal use only . @param it Iterator object that will be used to close it ' s attached alerts @param alert Alert which is used as a reference to close the alerts . @return Time in ms of the longest closing animation . That value can be used to delay certain action until all alerts have been closed .
private long internalCloseByAlert(@NonNull Iterator<AlertImpl> it, final @NonNull Alert alert) {
        long longestClosingAnim = 0;
        while (it.hasNext()) {
            AlertImpl object = it.next();
            if (object.equals(alert)) {
                if (object.getAnimationDuration() > longestClosingAnim) {
                    longestClosingAnim = object.getAnimationDuration();
                }
                internalMakeInvisible((AlertImpl) alert);
                it.remove();
            }
        }
        return longestClosingAnim;
    }
private long internalCloseByAlert ( @ NonNull Iterator < AlertImpl > it , final @ NonNull Alert alert ) { long longestClosingAnim = 0 ; while ( it . hasNext ( ) ) { AlertImpl object = it . next ( ) ; if ( object . equals ( alert ) ) { if ( object . getAnimationDuration ( ) > longestClosingAnim ) { longestClosingAnim = object . getAnimationDuration ( ) ; } internalMakeInvisible ( ( AlertImpl ) alert ) ; it . remove ( ) ; } } return longestClosingAnim ; }
Closes all alerts stored inside this controller by the given alert.
Closes all alerts stored inside this controller by the given alert .