public boolean equals()

in openwire-core/src/main/java/org/apache/activemq/openwire/commands/SubscriptionInfo.java [140:150]


    public boolean equals(Object obj) {
        boolean result = false;
        if (obj instanceof SubscriptionInfo) {
            SubscriptionInfo other = (SubscriptionInfo) obj;
            result = (clientId == null && other.clientId == null ||
                      clientId != null && other.clientId != null && clientId.equals(other.clientId)) &&
                     (subscriptionName == null && other.subscriptionName == null ||
                      subscriptionName != null && other.subscriptionName != null && subscriptionName.equals(other.subscriptionName));
        }
        return result;
    }