Class OrFilter

    • Constructor Detail

      • OrFilter

        public OrFilter​(Filter left,
                        Filter right)
        Takes the result of the left and right filter and ORs them.
    • Method Detail

      • accept

        public boolean accept​(ConnectorObject obj)
        Takes the result from the left and ORs it w/ the right filter.
        Parameters:
        obj - - The specified ConnectorObject.
        Returns:
        true if the object matches (that is, satisfies all selection criteria of) this filter; otherwise false.
        See Also:
        Filter.accept(ConnectorObject)
      • accept

        public <R,​P> R accept​(FilterVisitor<R,​P> v,
                                    P p)
        Description copied from interface: Filter
        Applies a FilterVisitor to this Filter.
        Type Parameters:
        R - The return type of the visitor's methods.
        P - The type of the additional parameters to the visitor's methods.
        Parameters:
        v - The filter visitor.
        p - Optional additional visitor parameter.
        Returns:
        A result as specified by the visitor.