mil.dod.th.remote.client/src/mil/dod/th/remote/client/impl/MessageListenerServiceImpl.java
private void tryRemoveCallback(final MessageListenerCallback<?> callback,
        final List<MessageListenerCallback<?>> callbackList)
    {
        final Iterator<MessageListenerCallback<?>> callbackIter = callbackList.iterator();
        while (callbackIter.hasNext())
        {
            final MessageListenerCallback<?> existingCallback = callbackIter.next();
            if (existingCallback.equals(callback))
            {
                callbackIter.remove();
            }
        }
    }
/**
     * Remove the callback if found within the list.
     * 
     * @param callback
     *      callback reference to remove
     * @param callbackList
     *      list to check for removal
     */
Remove the callback if found within the list.

@param callback
callback reference to remove
@param callbackList
list to check for removal
Remove the callback if found within the list . @param callback callback reference to remove @param callbackList list to check for removal
private void tryRemoveCallback(final MessageListenerCallback<?> callback,
        final List<MessageListenerCallback<?>> callbackList)
    {
        final Iterator<MessageListenerCallback<?>> callbackIter = callbackList.iterator();
        while (callbackIter.hasNext())
        {
            final MessageListenerCallback<?> existingCallback = callbackIter.next();
            if (existingCallback.equals(callback))
            {
                callbackIter.remove();
            }
        }
    }
private void tryRemoveCallback ( final MessageListenerCallback < ? > callback , final List < MessageListenerCallback < ? > > callbackList ) { final Iterator < MessageListenerCallback < ? > > callbackIter = callbackList . iterator ( ) ; while ( callbackIter . hasNext ( ) ) { final MessageListenerCallback < ? > existingCallback = callbackIter . next ( ) ; if ( existingCallback . equals ( callback ) ) { callbackIter . remove ( ) ; } } }
Remove the callback if found within the list.
Remove the callback if found within the list .