src/main/java/org/jivesoftware/smack/filter/OrFilter.java
public void addFilter(PacketFilter filter) {
        if (filter == null) {
            throw new IllegalArgumentException("Parameter cannot be null.");
        }
        // If there is no more room left in the filters array, expand it.
        if (size == filters.length) {
            PacketFilter[] newFilters = new PacketFilter[filters.length + 2];
            for (int i = 0; i < filters.length; i++) {
                newFilters[i] = filters[i];
            }
            filters = newFilters;
        }
        // Add the new filter to the array.
        filters[size] = filter;
        size++;
    }
public void addFilter(PacketFilter filter) {
        if (filter == null) {
            throw new IllegalArgumentException("Parameter cannot be null.");
        }
        // If there is no more room left in the filters array, expand it.
        if (size == filters.length) {
            PacketFilter[] newFilters = new PacketFilter[filters.length + 2];
            for (int i = 0; i < filters.length; i++) {
                newFilters[i] = filters[i];
            }
            filters = newFilters;
        }
        // Add the new filter to the array.
        filters[size] = filter;
        size++;
    }
public void addFilter ( PacketFilter filter ) { if ( filter == null ) { throw new IllegalArgumentException ( "Parameter cannot be null." ) ; } // If there is no more room left in the filters array, expand it. if ( size == filters . length ) { PacketFilter [ ] newFilters = new PacketFilter [ filters . length + 2 ] ; for ( int i = 0 ; i < filters . length ; i ++ ) { newFilters [ i ] = filters [ i ] ; } filters = newFilters ; } // Add the new filter to the array. filters [ size ] = filter ; size ++ ; }
Adds a filter to the filter list for the OR operation. A packet will pass
the filter if any filter in the list accepts it.

@param filter
a filter to add to the filter list.
Adds a filter to the filter list for the OR operation . A packet will pass the filter if any filter in the list accepts it .