@Override public B build() { return (B) new NamedBean(this); } }
public NamedBeanBuilder(NamedBean defaultBean) { super(defaultBean); this.name = defaultBean.getName(); }
@Override public int hashCode() { return new HashCodeBuilder(41, 17) .appendSuper(super.hashCode()) .append(params) .build(); } }
@Override public boolean equals(Object otherObj) { if (otherObj == this) { return true; } if (!(otherObj instanceof BeanWithKeyAndParams && super.equals(otherObj))) { return false; } BeanWithKeyAndParams other = (BeanWithKeyAndParams) otherObj; return new EqualsBuilder() .append(params, other.params) .isEquals(); }
@Override public int hashCode() { return new HashCodeBuilder(127, 5) .appendSuper(super.hashCode()) .append(conditions) .build(); } }
@Override public boolean equals(Object otherObj) { if (otherObj == this) { return true; } if (!(otherObj instanceof BeanWithKeyAndParams && super.equals(otherObj))) { return false; } BeanWithKeyAndParams other = (BeanWithKeyAndParams) otherObj; return new EqualsBuilder() .append(params, other.params) .isEquals(); }
public NamedBeanBuilder(NamedBean defaultBean) { super(defaultBean); this.name = defaultBean.getName(); }
@Override public int hashCode() { return new HashCodeBuilder(41, 17) .appendSuper(super.hashCode()) .append(params) .build(); } }
@Override public boolean equals(Object otherObj) { if (otherObj == this) { return true; } if (!(otherObj instanceof BeanWithKeyAndParamsAndConditions && super.equals(otherObj))) { return false; } NamedBeanWithConditions other = (NamedBeanWithConditions) otherObj; return new EqualsBuilder() .append(conditions, other.conditions) .isEquals(); }
@Override public B build() { return (B) new NamedBean(this); } }
public String getDisplayName() { return getName().getValue(); }
public String getDisplayName() { return getName().getValue(); }