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:io.cloudslang.content.dropbox.factory.folders.FolderPayload.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FolderPayload that = (FolderPayload) o; return new EqualsBuilder().append(path, that.path).append(autorename, that.autorename).isEquals(); }
From source file:de.blizzy.documentr.page.PageData.java
@Override public boolean equals(Object o) { if (o == this) { return true; } else if ((o != null) && o.getClass().equals(getClass())) { PageData other = (PageData) o;//from ww w . j a v a 2 s. co m return new EqualsBuilder().append(data, other.data).append(contentType, other.contentType).isEquals(); } return false; }
From source file:be.bittich.dynaorm.ioc.Bean.java
@Override public boolean equals(Object obj) { if (obj instanceof Bean) { Bean<T> objBean = (Bean<T>) obj; return new EqualsBuilder().append(this.getBean(), objBean.getBean()) .append(objBean.getId(), this.getId()).isEquals(); }/*from w ww. j a v a 2 s. c om*/ return false; }
From source file:com.hp.ov.sdk.dto.VlanPool.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof VlanPool) { VlanPool vlanPool = (VlanPool) obj; return new EqualsBuilder().appendSuper(super.equals(obj)).append(start, vlanPool.start) .append(length, vlanPool.length).isEquals(); }// w w w. j a va 2s . c o m return false; }
From source file:net.mindengine.isolator4j.Response.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Response response = (Response) o; return new EqualsBuilder().append(code, response.code).append(body, response.body).isEquals(); }
From source file:io.cloudslang.content.amazon.entities.aws.Filter.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Filter filter = (Filter) o; return new EqualsBuilder().append(name, filter.name).append(values, filter.values).isEquals(); }
From source file:com.hp.ov.sdk.dto.RestUri.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; RestUri restUri = (RestUri) obj;// w w w. j a v a 2s. c om return new EqualsBuilder().append(name, restUri.name).append(uri, restUri.uri).isEquals(); }
From source file:com.antonjohansson.elasticsearchshell.domain.Index.java
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != getClass()) { return false; }/*from w ww . j a v a 2s.c o m*/ if (obj == this) { return true; } Index that = (Index) obj; return new EqualsBuilder().append(this.settings, that.settings).isEquals(); }
From source file:com.hp.ov.sdk.dto.generated.VpcPeer.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; VpcPeer vpcPeer = (VpcPeer) obj;//w w w. j a v a2s. c om return new EqualsBuilder().append(name, vpcPeer.name).append(uri, vpcPeer.uri).isEquals(); }
From source file:io.cloudslang.lang.tools.build.tester.parallel.testcaseevents.SlangTestCaseEvent.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w w w .j a v a 2 s .c o m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } SlangTestCaseEvent rhs = (SlangTestCaseEvent) obj; return new EqualsBuilder().appendSuper(super.equals(obj)).append(this.slangTestCase, rhs.slangTestCase) .isEquals(); }