@Override public B build() { return (B) new BeanWithKeyAndParams(this); } }
public BeanWithKeyAndParamsBuilder(BeanWithKeyAndParams defaultBean) { super(defaultBean); this.params = defaultBean.getParams(); }
@Override public int hashCode() { return new HashCodeBuilder(59, 29) .appendSuper(super.hashCode()) .append(conditions) .build(); } }
@Override public boolean equals(Object otherObj) { if (otherObj == this) { return true; } if (!(otherObj instanceof BeanWithKeyAndParamsAndConditions && super.equals(otherObj))) { return false; } BeanWithKeyAndParamsAndConditions other = (BeanWithKeyAndParamsAndConditions) otherObj; return new EqualsBuilder() .append(conditions, other.conditions) .isEquals(); }
@Override public int hashCode() { return new HashCodeBuilder(59, 29) .appendSuper(super.hashCode()) .append(conditions) .build(); } }
@Override public boolean equals(Object otherObj) { if (otherObj == this) { return true; } if (!(otherObj instanceof BeanWithKeyAndParamsAndConditions && super.equals(otherObj))) { return false; } BeanWithKeyAndParamsAndConditions other = (BeanWithKeyAndParamsAndConditions) otherObj; return new EqualsBuilder() .append(conditions, other.conditions) .isEquals(); }
@Override public B build() { return (B) new BeanWithKeyAndParams(this); } }
public BeanWithKeyAndParamsBuilder(BeanWithKeyAndParams defaultBean) { super(defaultBean); this.params = defaultBean.getParams(); }