Java Code Examples for org.apache.commons.lang3.builder.EqualsBuilder#append()

The following examples show how to use org.apache.commons.lang3.builder.EqualsBuilder#append() . 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: PlusVertex.java    From jstarcraft-ai with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object) {
        return true;
    }
    if (object == null) {
        return false;
    }
    if (getClass() != object.getClass()) {
        return false;
    } else {
        PlusVertex that = (PlusVertex) object;
        EqualsBuilder equal = new EqualsBuilder();
        equal.append(this.vertexName, that.vertexName);
        return equal.isEquals();
    }
}
 
Example 2
Source File: MockComplexObject.java    From jstarcraft-core with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object)
        return true;
    if (object == null)
        return false;
    if (getClass() != object.getClass())
        return false;
    MockComplexObject that = (MockComplexObject) object;
    EqualsBuilder equal = new EqualsBuilder();
    equal.append(this.id, that.id);
    equal.append(this.firstName, that.firstName);
    equal.append(this.lastName, that.lastName);
    equal.append(this.names, that.names);
    equal.append(this.money, that.money);
    equal.append(this.currencies, that.currencies);
    equal.append(this.instant, that.instant);
    equal.append(this.race, that.race);
    equal.append(this.object, that.object);
    equal.append(this.list, that.list);
    equal.append(this.map, that.map);
    return equal.isEquals();
}
 
Example 3
Source File: LimitVertex.java    From jstarcraft-ai with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object) {
        return true;
    }
    if (object == null) {
        return false;
    }
    if (getClass() != object.getClass()) {
        return false;
    } else {
        LimitVertex that = (LimitVertex) object;
        EqualsBuilder equal = new EqualsBuilder();
        equal.append(this.vertexName, that.vertexName);
        equal.append(this.mode, that.mode);
        return equal.isEquals();
    }
}
 
Example 4
Source File: Nd4jVertex.java    From jstarcraft-ai with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object) {
        return true;
    }
    if (object == null) {
        return false;
    }
    if (getClass() != object.getClass()) {
        return false;
    } else {
        HorizontalAttachVertex that = (HorizontalAttachVertex) object;
        EqualsBuilder equal = new EqualsBuilder();
        equal.append(this.vertexName, that.vertexName);
        return equal.isEquals();
    }
}
 
Example 5
Source File: MockNode.java    From jstarcraft-core with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object)
        return true;
    if (object == null)
        return false;
    if (!(object instanceof MockNode))
        return false;
    MockNode that = (MockNode) object;
    EqualsBuilder equal = new EqualsBuilder();
    equal.append(this.getId(), that.getId());
    equal.append(this.getName(), that.getName());
    equal.append(this.getMoney(), that.getMoney());
    equal.append(this.getRace(), that.getRace());
    return equal.isEquals();
}
 
Example 6
Source File: MockComplexObject.java    From jstarcraft-core with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object)
        return true;
    if (object == null)
        return false;
    if (getClass() != object.getClass())
        return false;
    MockComplexObject that = (MockComplexObject) object;
    EqualsBuilder equal = new EqualsBuilder();
    equal.append(this.id, that.id);
    equal.append(this.firstName, that.firstName);
    equal.append(this.lastName, that.lastName);
    equal.append(this.names, that.names);
    equal.append(this.money, that.money);
    equal.append(this.currencies, that.currencies);
    equal.append(this.instant, that.instant);
    equal.append(this.race, that.race);
    equal.append(this.type, that.type);
    return equal.isEquals();
}
 
Example 7
Source File: LocalMatrix.java    From jstarcraft-ai with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object)
        return true;
    if (object == null)
        return false;
    if (getClass() != object.getClass())
        return false;
    LocalMatrix that = (LocalMatrix) object;
    EqualsBuilder equal = new EqualsBuilder();
    equal.append(this.matrix, that.matrix);
    equal.append(this.left, that.left);
    equal.append(this.right, that.right);
    equal.append(this.top, that.top);
    equal.append(this.bottom, that.bottom);
    return equal.isEquals();
}
 
Example 8
Source File: MockComplexObject.java    From jstarcraft-core with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object)
        return true;
    if (object == null)
        return false;
    if (getClass() != object.getClass())
        return false;
    MockComplexObject that = (MockComplexObject) object;
    EqualsBuilder equal = new EqualsBuilder();
    equal.append(this.id, that.id);
    equal.append(this.firstName, that.firstName);
    equal.append(this.lastName, that.lastName);
    equal.append(this.names, that.names);
    equal.append(this.money, that.money);
    equal.append(this.currencies, that.currencies);
    equal.append(this.instant, that.instant);
    equal.append(this.race, that.race);
    equal.append(this.type, that.type);
    return equal.isEquals();
}
 
Example 9
Source File: AccountEntry.java    From jpa-unit with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    } else if (!(obj instanceof AccountEntry)) {
        return false;
    }
    final AccountEntry other = (AccountEntry) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(date, other.date);
    builder.append(reference, other.reference);
    builder.append(details, other.details);
    builder.append(amount, other.amount);
    builder.append(type, other.type);
    return builder.build();
}
 
Example 10
Source File: RuntimeConfigDb.java    From fredbet with Creative Commons Attribution Share Alike 4.0 International 6 votes vote down vote up
public boolean equals(Object obj) {
	if (obj == null) {
		return false;
	}
	if (obj == this) {
		return true;
	}
	if (obj.getClass() != getClass()) {
		return false;
	}
	RuntimeConfigDb runtimeConfigDb = (RuntimeConfigDb) obj;
	EqualsBuilder builder = new EqualsBuilder();
	builder.append(configId, runtimeConfigDb.configId);
	builder.append(jsonConfig, runtimeConfigDb.jsonConfig);
	return builder.isEquals();
}
 
Example 11
Source File: HibernateEntityObject.java    From jstarcraft-core with Apache License 2.0 5 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object)
        return true;
    if (object == null)
        return false;
    if (!(object instanceof HibernateEntityObject))
        return false;
    HibernateEntityObject that = (HibernateEntityObject) object;
    EqualsBuilder equal = new EqualsBuilder();
    equal.append(this.getFirstName(), that.getFirstName());
    equal.append(this.getLastName(), that.getLastName());
    return equal.isEquals();
}
 
Example 12
Source File: HibernateApiFetchStrategyTest.java    From hibernate-master-class with Apache License 2.0 5 votes vote down vote up
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof Product)) {
        return false;
    }
    Product that = (Product) obj;
    EqualsBuilder eb = new EqualsBuilder();
    eb.append(name, that.getName());
    eb.append(company, that.getCompany());
    return eb.isEquals();
}
 
Example 13
Source File: MockObject.java    From jstarcraft-core with Apache License 2.0 5 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object)
        return true;
    if (object == null)
        return false;
    if (getClass() != object.getClass())
        return false;
    MockObject that = (MockObject) object;
    EqualsBuilder equal = new EqualsBuilder();
    equal.append(this.id, that.id);
    equal.append(this.name, that.name);
    return equal.isEquals();
}
 
Example 14
Source File: HibernateApiFetchStrategyTest.java    From hibernate-master-class with Apache License 2.0 5 votes vote down vote up
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof Importer)) {
        return false;
    }
    Importer that = (Importer) obj;
    EqualsBuilder eb = new EqualsBuilder();
    eb.append(name, that.getName());
    return eb.isEquals();
}
 
Example 15
Source File: CacheIndex.java    From jstarcraft-core with Apache License 2.0 5 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object)
        return true;
    if (object == null)
        return false;
    if (getClass() != object.getClass())
        return false;
    CacheIndex that = (CacheIndex) object;
    EqualsBuilder equal = new EqualsBuilder();
    equal.append(this.name, that.name);
    equal.append(this.value, that.value);
    return equal.isEquals();
}
 
Example 16
Source File: KeyValue.java    From jstarcraft-core with Apache License 2.0 5 votes vote down vote up
@Override
public boolean equals(Object object) {
    if (this == object)
        return true;
    if (object == null)
        return false;
    if (getClass() != object.getClass())
        return false;
    KeyValue that = (KeyValue) object;
    EqualsBuilder equal = new EqualsBuilder();
    equal.append(this.key, that.key);
    equal.append(this.value, that.value);
    return equal.isEquals();
}
 
Example 17
Source File: ContactDetail.java    From jpa-unit with Apache License 2.0 5 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    } else if (!(obj instanceof ContactDetail)) {
        return false;
    }

    final ContactDetail other = (ContactDetail) obj;

    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(type, other.type);
    builder.append(value, other.value);
    return builder.build();
}
 
Example 18
Source File: Technology.java    From jpa-unit with Apache License 2.0 5 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    }

    if (obj instanceof Technology) {
        final Technology other = (Technology) obj;
        final EqualsBuilder builder = new EqualsBuilder();
        builder.append(name, other.name);
        return builder.isEquals();
    }

    return false;
}
 
Example 19
Source File: AbstractErrata.java    From uyuni with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public boolean equals(Object obj) {
    if (!(obj instanceof AbstractErrata)) {
        return false;
    }
    AbstractErrata e = (AbstractErrata) obj;
    EqualsBuilder eb = new EqualsBuilder();
    eb.append(this.getAdvisory(), e.getAdvisory());
    eb.append(this.getAdvisoryName(), e.getAdvisoryName());
    eb.append(this.getAdvisoryRel(), e.getAdvisoryRel());
    eb.append(this.getAdvisorySynopsis(), e.getAdvisorySynopsis());
    eb.append(this.getOrg(), e.getOrg());
    return eb.isEquals();
}
 
Example 20
Source File: ActionRequirements.java    From sailfish-core with Apache License 2.0 5 votes vote down vote up
@Override
public boolean equals(Object o) {
    if(!(o instanceof ActionRequirements)) {
        return false;
    }

    ActionRequirements that = (ActionRequirements)o;
    EqualsBuilder builder = new EqualsBuilder();

    builder.append(requiredColumns, that.requiredColumns);
    builder.append(deprecatedColumns, that.deprecatedColumns);

    return builder.isEquals();
}