下面列出了org.apache.commons.lang3.builder.EqualsBuilder#build ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@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();
}
@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();
}
@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();
}
@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;
}
@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();
}
@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();
}
@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();
}
@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();
}
@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();
}
@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();
}
@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();
}
@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();
}