@Override public boolean equals(Object obj) { if (obj == null) return false; if (obj == this) return true; if (!(obj instanceof Pool)) return false; Pool other = (Pool) obj; return new EqualsBuilder().appendSuper(super.equals(obj)).append(description, other.getDescription()) .append(poolDilutions, other.getPoolDilutions()) .append(concentration, other.getConcentration()) .append(identificationBarcode, other.getIdentificationBarcode()) .append(qcPassed, other.getQcPassed()) .isEquals(); }
dto.setName(from.getName()); dto.setAlias(from.getAlias()); dto.setDescription(from.getDescription()); dto.setConcentration(from.getConcentration() == null ? null : from.getConcentration().toString()); dto.setConcentrationUnits(from.getConcentrationUnits());
managed.setConcentration(pool.getConcentration()); managed.setConcentrationUnits(pool.getConcentrationUnits()); managed.setDescription(pool.getDescription()); managed.setIdentificationBarcode(LimsUtils.nullifyStringIfBlank(pool.getIdentificationBarcode())); managed.setPlatformType(pool.getPlatformType());