api/jar/src/main/java/javax/slee/management/AlarmDuplicateFilter.java
public boolean isNotificationEnabled(Notification notification) {
        if (!(notification instanceof AlarmNotification)) return false;

        synchronized (knownAlarms) {
            clearStaleTimeouts();

            if (knownAlarms.containsKey(notification)) return false;

            // we've not seen this alarm before, or the period has expired since
            // the first notification
            knownAlarms.put(notification, new Long(System.currentTimeMillis()));
            return true;
        }
    }
public boolean isNotificationEnabled(Notification notification) {
        if (!(notification instanceof AlarmNotification)) return false;

        synchronized (knownAlarms) {
            clearStaleTimeouts();

            if (knownAlarms.containsKey(notification)) return false;

            // we've not seen this alarm before, or the period has expired since
            // the first notification
            knownAlarms.put(notification, new Long(System.currentTimeMillis()));
            return true;
        }
    }
public boolean isNotificationEnabled ( Notification notification ) { if ( ! ( notification instanceof AlarmNotification ) ) return false ; synchronized ( knownAlarms ) { clearStaleTimeouts ( ) ; if ( knownAlarms . containsKey ( notification ) ) return false ; // we've not seen this alarm before, or the period has expired since // the first notification knownAlarms . put ( notification , new Long ( System . currentTimeMillis ( ) ) ) ; return true ; } }
Determine whether the specified notification should be delivered to notification
listeners using this notification filter.
@param notification the notification to be sent.
@return <code>true</code> if the notification should be delivered to notification
listeners, <code>false</code> otherwise.  This method always returns
<code>false</code> if <code>notification</code> is not an instance of
{@link AlarmNotification}.
Determine whether the specified notification should be delivered to notification listeners using this notification filter .