public boolean equals()

in aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SNSEvent.java [740:766]


        public boolean equals(Object obj) {
            if (this == obj)
                return true;
            if (obj == null)
                return false;

            if (obj instanceof SNSRecord == false)
                return false;
            SNSRecord other = (SNSRecord) obj;
            if (other.getSNS() == null ^ this.getSNS() == null)
                return false;
            if (other.getSNS() != null && other.getSNS().equals(this.getSNS()) == false)
                return false;
            if (other.getEventVersion() == null ^ this.getEventVersion() == null)
                return false;
            if (other.getEventVersion() != null && other.getEventVersion().equals(this.getEventVersion()) == false)
                return false;
            if (other.getEventSource() == null ^ this.getEventSource() == null)
                return false;
            if (other.getEventSource() != null && other.getEventSource().equals(this.getEventSource()) == false)
                return false;
            if (other.getEventSubscriptionArn() == null ^ this.getEventSubscriptionArn() == null)
                return false;
            if (other.getEventSubscriptionArn() != null && other.getEventSubscriptionArn().equals(this.getEventSubscriptionArn()) == false)
                return false;
            return true;
        }