List of usage examples for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder
public EqualsBuilder()
Constructor for EqualsBuilder.
Starts off assuming that equals is true
.
From source file:gr.abiss.calipso.model.dto.MetadatumDTO.java
@Override public boolean equals(Object obj) { if (null == obj) { return false; }//from www .jav a 2s . c om if (this == obj) { return true; } if (!MetadatumDTO.class.isInstance(obj)) { return false; } @SuppressWarnings("rawtypes") MetadatumDTO that = (MetadatumDTO) obj; return new EqualsBuilder().append(this.getSubject(), that.getSubject()) .append(this.getPredicate(), that.getPredicate()).isEquals(); }
From source file:jodtemplate.template.expression.ListExpression.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }//from w ww . ja va 2 s.co m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } final ListExpression rhs = (ListExpression) obj; return new EqualsBuilder().append(what, rhs.what).append(as, rhs.as).isEquals(); }
From source file:com.orange.clara.cloud.services.sandbox.domain.SandboxInfo.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SandboxInfo that = (SandboxInfo) o;// w w w. j ava 2 s. c om return new EqualsBuilder().append(orgName, that.orgName).append(spaceName, that.spaceName) .append(apiUrl, that.apiUrl).isEquals(); }
From source file:com.antonjohansson.elasticsearchshell.domain.Acknowledgement.java
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != getClass()) { return false; }/*from w w w. j av a2s .c o m*/ if (obj == this) { return true; } Acknowledgement that = (Acknowledgement) obj; return new EqualsBuilder().append(this.acknowledged, that.acknowledged).isEquals(); }
From source file:com.mingo.domain.Author.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/* w ww. j av a 2 s . c om*/ if (o == null || getClass() != o.getClass()) { return false; } Author that = (Author) o; return new EqualsBuilder().append(name, that.name).append(email, that.email).isEquals(); }
From source file:com.hp.ov.sdk.dto.Location.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; Location location = (Location) obj; return new EqualsBuilder().append(locationEntries, location.locationEntries).isEquals(); }
From source file:at.ac.tuwien.dsg.cloud.utilities.messaging.lightweight.rabbitMq.TypeHandler.java
@Override public boolean equals(Object o) { if (o == null) { return false; }/*w w w . j a v a 2s. c o m*/ if (!(o instanceof TypeHandler)) { return false; } TypeHandler typeHandle = (TypeHandler) o; return new EqualsBuilder().append(types.toArray(), typeHandle.types.toArray()).isEquals(); }
From source file:com.hp.ov.sdk.dto.PowerDeliveryDeviceRefreshRequest.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof PowerDeliveryDeviceRefreshRequest) { PowerDeliveryDeviceRefreshRequest that = (PowerDeliveryDeviceRefreshRequest) obj; return new EqualsBuilder().appendSuper(super.equals(obj)).append(refreshState, that.refreshState) .isEquals();//from w w w . j a v a 2 s . com } return false; }
From source file:io.cloudslang.lang.entities.AsyncLoopStatement.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AsyncLoopStatement that = (AsyncLoopStatement) o; return new EqualsBuilder().append(varName, that.varName).append(getExpression(), that.getExpression()) .isEquals();/*from w ww . j av a 2 s. c o m*/ }
From source file:com.hp.ov.sdk.dto.SwitchMap.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; SwitchMap switchMap = (SwitchMap) obj; return new EqualsBuilder().append(switchMapEntries, switchMap.switchMapEntries).isEquals(); }