public boolean equals()

in commons-digester3-core/src/main/java/org/apache/commons/digester3/PatternRuleMatcher.java [56:85]


    public boolean equals( final Object obj )
    {
        if ( this == obj )
        {
            return true;
        }

        if ( obj == null )
        {
            return false;
        }

        if ( getClass() != obj.getClass() )
        {
            return false;
        }

        final PatternRuleMatcher other = (PatternRuleMatcher) obj;
        if ( !Objects.equals( namespaceURI, other.getNamespaceURI() ) )
        {
            return false;
        }

        if ( !pattern.equals( other.getPattern() ) )
        {
            return false;
        }

        return true;
    }