@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ChannelWriteRecipe other = (ChannelWriteRecipe) obj; if ((this.channelName == null) ? (other.channelName != null) : !this.channelName.equals(other.channelName)) { return false; } if (this.writeSubscription != other.writeSubscription && (this.writeSubscription == null || !this.writeSubscription.equals(other.writeSubscription))) { return false; } return true; }