core/src/main/java/org/hitogo/core/HitogoController.java
private long internalCloseByType(@NonNull Iterator<AlertImpl> it, @NonNull AlertType type, boolean onlyHide) {
        long longestClosingAnim = 0;

        while (it.hasNext()) {
            AlertImpl object = it.next();
            if (object != null && type == object.getAlertType() && object.isAttached()) {
                if (object.getAnimationDuration() > longestClosingAnim) {
                    longestClosingAnim = object.getAnimationDuration();
                }

                internalMakeInvisible(object);

                if (!onlyHide) {
                    it.remove();
                }
            }
        }

        return longestClosingAnim;
    }
/**
     * Hides or closes all alerts stored inside this controller by the given AlertType. The given
     * onlyHide determines if the found alerts should be closed or only hidden. Hiding a certain
     * alert makes him only invisible for the user, but the alert is still stored inside this
     * controller. <b>Internal use only.</b>
     *
     * @param it       Iterator object that will be used to close it's <b>attached</b> alerts
     * @param type     AlertType which is used as a reference to close the alerts.
     * @param onlyHide True if all found alerts should be hidden only, false if it should close
     *                 those.
     * @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
     */
Hides or closes all alerts stored inside this controller by the given AlertType. The given
onlyHide determines if the found alerts should be closed or only hidden. Hiding a certain
alert makes him only invisible for the user, but the alert is still stored inside this
controller. Internal use only.

@param it       Iterator object that will be used to close it's attached alerts
@param type     AlertType which is used as a reference to close the alerts.
@param onlyHide True if all found alerts should be hidden only, false if it should close
those.
@return Time in ms of the longest closing animation. That value can be used to
delay certain action until all alerts have been closed.
Hides or closes all alerts stored inside this controller by the given AlertType . The given onlyHide determines if the found alerts should be closed or only hidden . Hiding a certain alert makes him only invisible for the user but the alert is still stored inside this controller . Internal use only . @param it Iterator object that will be used to close it ' s attached alerts @param type AlertType which is used as a reference to close the alerts . @param onlyHide True if all found alerts should be hidden only false if it should close those . @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 internalCloseByType(@NonNull Iterator<AlertImpl> it, @NonNull AlertType type, boolean onlyHide) {
        long longestClosingAnim = 0;
        while (it.hasNext()) {
            AlertImpl object = it.next();
            if (object != null && type == object.getAlertType() && object.isAttached()) {
                if (object.getAnimationDuration() > longestClosingAnim) {
                    longestClosingAnim = object.getAnimationDuration();
                }
                internalMakeInvisible(object);
                if (!onlyHide) {
                    it.remove();
                }
            }
        }
        return longestClosingAnim;
    }
private long internalCloseByType ( @ NonNull Iterator < AlertImpl > it , @ NonNull AlertType type , boolean onlyHide ) { long longestClosingAnim = 0 ; while ( it . hasNext ( ) ) { AlertImpl object = it . next ( ) ; if ( object != null && type == object . getAlertType ( ) && object . isAttached ( ) ) { if ( object . getAnimationDuration ( ) > longestClosingAnim ) { longestClosingAnim = object . getAnimationDuration ( ) ; } internalMakeInvisible ( object ) ; if ( ! onlyHide ) { it . remove ( ) ; } } } return longestClosingAnim ; }
Hides or closes all alerts stored inside this controller by the given AlertType.
Hides or closes all alerts stored inside this controller by the given AlertType .