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

                internalMakeInvisible(object);
                it.remove();
            }
        }
    }
/**
     * Closes all alerts stored inside this controller by the given String. <b>Internal use only.</b>
     *
     * @param it             Iterator object that will be used to close it's <b>attached</b> alerts
     * @param tag            String 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 String. Internal use only.
@param it             Iterator object that will be used to close it's attached alerts
@param tag            String 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 String . Internal use only . @param it Iterator object that will be used to close it ' s attached alerts @param tag String 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 internalCloseByTag(@NonNull Iterator<AlertImpl> it, @NonNull String tag, @IntRange(from = 0) long currentLongest) {
        while (it.hasNext()) {
            AlertImpl object = it.next();
            if (object != null && object.isAttached() && tag.equals(object.getTag())) {
                if (object.getAnimationDuration() > currentLongest) {
                    currentLongest = object.getAnimationDuration();
                }
                internalMakeInvisible(object);
                it.remove();
            }
        }
    }
private void internalCloseByTag ( @ NonNull Iterator < AlertImpl > it , @ NonNull String tag , @ IntRange ( from = 0 ) long currentLongest ) { while ( it . hasNext ( ) ) { AlertImpl object = it . next ( ) ; if ( object != null && object . isAttached ( ) && tag . equals ( object . getTag ( ) ) ) { if ( object . getAnimationDuration ( ) > currentLongest ) { currentLongest = object . getAnimationDuration ( ) ; } internalMakeInvisible ( object ) ; it . remove ( ) ; } } }
Closes all alerts stored inside this controller by the given String.
Closes all alerts stored inside this controller by the given String .