/** * Checks if observer or its weak references are in the list. */ private boolean contains(ApptentiveNotificationObserver observer) { return indexOf(observer) != -1; }
/** * Removes observer os its weak reference from the list * * @return <code>true</code> if observer was returned */ boolean removeObserver(ApptentiveNotificationObserver observer) { int index = indexOf(observer); if (index != -1) { observers.remove(index); return true; } return false; }