Java Code Examples for org.apache.commons.lang.builder.EqualsBuilder#appendSuper()
The following examples show how to use
org.apache.commons.lang.builder.EqualsBuilder#appendSuper() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NotificationEvent.java From olat with Apache License 2.0 | 6 votes |
@Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof NotificationEvent)) return false; NotificationEvent theOther = (NotificationEvent) obj; EqualsBuilder builder = new EqualsBuilder(); builder.appendSuper(this.getSubscription().equals(theOther.getSubscription())); builder.append(this.creationDate, theOther.getCreationDate()); builder.append(this.status, theOther.status); builder.append(this.getAttributes(), theOther.getAttributes()); return builder.isEquals(); }
Example 2
Source File: NotificationEvent.java From olat with Apache License 2.0 | 6 votes |
@Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof NotificationEvent)) return false; NotificationEvent theOther = (NotificationEvent) obj; EqualsBuilder builder = new EqualsBuilder(); builder.appendSuper(this.getSubscription().equals(theOther.getSubscription())); builder.append(this.creationDate, theOther.getCreationDate()); builder.append(this.status, theOther.status); builder.append(this.getAttributes(), theOther.getAttributes()); return builder.isEquals(); }
Example 3
Source File: Subscription.java From olat with Apache License 2.0 | 5 votes |
@Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof Subscription)) return false; Subscription theOther = (Subscription) obj; EqualsBuilder builder = new EqualsBuilder(); builder.appendSuper(getPublisher().equals(obj)); builder.appendSuper(getSubscriber().equals(obj)); return builder.isEquals(); }
Example 4
Source File: Subscription.java From olat with Apache License 2.0 | 5 votes |
@Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof Subscription)) return false; Subscription theOther = (Subscription) obj; EqualsBuilder builder = new EqualsBuilder(); builder.appendSuper(getPublisher().equals(obj)); builder.appendSuper(getSubscriber().equals(obj)); return builder.isEquals(); }