org.apache.commons.lang3.builder.EqualsBuilder#build ( )源码实例Demo

下面列出了org.apache.commons.lang3.builder.EqualsBuilder#build ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: jpa-unit   文件: AccountEntry.java
@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();
}
 
源代码2 项目: jpa-unit   文件: AccountEntry.java
@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();
}
 
源代码3 项目: jpa-unit   文件: AccountEntry.java
@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();
}
 
private static boolean areGsisSameConfiguration(final GlobalSecondaryIndexDescription g1, final GlobalSecondaryIndexDescription g2) {
    if (g1 == null ^ g2 == null) {
        return false;
    }
    if (g1 == g2) {
        return true;
    }
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(g1.getIndexName(), g2.getIndexName());
    builder.append(g1.getKeySchema(), g2.getKeySchema());
    builder.append(g1.getProjection().getProjectionType(), g2.getProjection().getProjectionType());
    builder.append(g1.getProvisionedThroughput().getReadCapacityUnits(), g2.getProvisionedThroughput().getReadCapacityUnits());
    builder.append(g1.getProvisionedThroughput().getWriteCapacityUnits(), g2.getProvisionedThroughput().getWriteCapacityUnits());

    final Set<String> projectionNonKeyAttributesG1 =
        new HashSet<>(Optional.ofNullable(g1.getProjection().getNonKeyAttributes()).orElse(Collections.emptyList()));
    final Set<String> projectionNonKeyAttributesG2 =
        new HashSet<>(Optional.ofNullable(g2.getProjection().getNonKeyAttributes()).orElse(Collections.emptyList()));
    builder.append(projectionNonKeyAttributesG1, projectionNonKeyAttributesG2);

    return builder.build();
}
 
源代码5 项目: datawave   文件: IvaratorReloadTest.java
@Override
public boolean equals(Object other) {
    if (other instanceof IvaratorDirState) {
        IvaratorDirState state = (IvaratorDirState) other;
        EqualsBuilder builder = new EqualsBuilder().append(complete, state.complete).append(sortedSetBytes, state.sortedSetBytes)
                        .append(sortedSetDates, state.sortedSetDates);
        return builder.build();
    }
    return false;
}
 
源代码6 项目: jpa-unit   文件: Address.java
@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    } else if (!(obj instanceof Address)) {
        return false;
    }
    final Address other = (Address) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(street, other.street);
    builder.append(zipCode, other.zipCode);
    builder.append(city, other.city);
    builder.append(country, other.country);
    return builder.build();
}
 
源代码7 项目: jpa-unit   文件: ContactDetail.java
@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();
}
 
源代码8 项目: jpa-unit   文件: Address.java
@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    } else if (!(obj instanceof Address)) {
        return false;
    }
    final Address other = (Address) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(street, other.street);
    builder.append(zipCode, other.zipCode);
    builder.append(city, other.city);
    builder.append(country, other.country);
    return builder.build();
}
 
源代码9 项目: jpa-unit   文件: ContactDetail.java
@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();
}
 
源代码10 项目: jpa-unit   文件: Address.java
@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    } else if (!(obj instanceof Address)) {
        return false;
    }
    final Address other = (Address) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(street, other.street);
    builder.append(zipCode, other.zipCode);
    builder.append(city, other.city);
    builder.append(country, other.country);
    return builder.build();
}
 
源代码11 项目: jpa-unit   文件: ContactDetail.java
@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();
}
 
源代码12 项目: jpa-unit   文件: Address.java
@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    } else if (!(obj instanceof Address)) {
        return false;
    }
    final Address other = (Address) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(street, other.street);
    builder.append(zipCode, other.zipCode);
    builder.append(city, other.city);
    builder.append(country, other.country);
    return builder.build();
}
 
源代码13 项目: jpa-unit   文件: ContactDetail.java
@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();
}