Class OrFilter

    • Constructor Detail

      • OrFilter

        public OrFilter​(StanzaFilter... filters)
        Creates an OR filter using the specified filters.
        Parameters:
        filters - the filters to add.
    • Method Detail

      • accept

        public boolean accept​(Stanza packet)
        Description copied from interface: StanzaFilter
        Tests whether or not the specified stanza should pass the filter.
        Specified by:
        accept in interface StanzaFilter
        Parameters:
        packet - the stanza to test.
        Returns:
        true if and only if stanza passes the filter.