core/src/main/java/org/hitogo/core/HitogoController.java
private void internalMakeActiveAlertInvisible(@NonNull AlertImpl toBeClosedAlert) {
        Iterator<AlertImpl> iterator = getCurrentActiveList(toBeClosedAlert.getAlertType()).iterator();

        while (iterator.hasNext()) {
            AlertImpl alert = iterator.next();

            if (toBeClosedAlert.equals(alert)) {
                if (alert.hasPriority()) {
                    setCurrentHighestPriority(alert.getAlertType(), Integer.MAX_VALUE);
                }

                alert.makeInvisible();
                iterator.remove();
                break;
            }
        }
    }
/**
     * Ensures that the right alert (the one that has been attached to the user) has been selected
     * to be closed. <b>Internal use only.</b>
     *
     * @param toBeClosedAlert Reference to the alert which needs to be closed
     * @since 1.0.0
     */
Ensures that the right alert (the one that has been attached to the user) has been selected
to be closed. Internal use only.

@param toBeClosedAlert Reference to the alert which needs to be closed
@since 1.0.0
Ensures that the right alert ( the one that has been attached to the user ) has been selected to be closed . Internal use only . @param toBeClosedAlert Reference to the alert which needs to be closed @since 1 . 0 . 0
private void internalMakeActiveAlertInvisible(@NonNull AlertImpl toBeClosedAlert) {
        Iterator<AlertImpl> iterator = getCurrentActiveList(toBeClosedAlert.getAlertType()).iterator();
        while (iterator.hasNext()) {
            AlertImpl alert = iterator.next();
            if (toBeClosedAlert.equals(alert)) {
                if (alert.hasPriority()) {
                    setCurrentHighestPriority(alert.getAlertType(), Integer.MAX_VALUE);
                }
                alert.makeInvisible();
                iterator.remove();
                break;
            }
        }
    }
private void internalMakeActiveAlertInvisible ( @ NonNull AlertImpl toBeClosedAlert ) { Iterator < AlertImpl > iterator = getCurrentActiveList ( toBeClosedAlert . getAlertType ( ) ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { AlertImpl alert = iterator . next ( ) ; if ( toBeClosedAlert . equals ( alert ) ) { if ( alert . hasPriority ( ) ) { setCurrentHighestPriority ( alert . getAlertType ( ) , Integer . MAX_VALUE ) ; } alert . makeInvisible ( ) ; iterator . remove ( ) ; break ; } } }
Ensures that the right alert (the one that has been attached to the user) has been selected
 to be closed.
Ensures that the right alert ( the one that has been attached to the user ) has been selected to be closed .