public synchronized IoFilter remove(IoFilter filter) {
        if (filter == null) {
            throw new NullPointerException("filter");
        }

        for (ListIterator<Entry> i = entries.listIterator(); i.hasNext();) {
            Entry e = i.next();
            if (e.getFilter() == filter) {
                entries.remove(i.previousIndex());
                return e.getFilter();
            }
        }

        throw new IllegalArgumentException("Filter not found: " + filter.getClass().getName());
    }
public synchronized IoFilter remove ( IoFilter filter ) { if ( filter == null ) { throw new NullPointerException ( "filter" ) ; } for ( ListIterator < Entry > i = entries . listIterator ( ) ; i . hasNext ( ) ; ) { Entry e = i . next ( ) ; if ( e . getFilter ( ) == filter ) { entries . remove ( i . previousIndex ( ) ) ; return e . getFilter ( ) ; } } throw new IllegalArgumentException ( "Filter not found: " + filter . getClass ( ) . getName ( ) ) ; }
@see IoFilterChain#remove(IoFilter)