/** * Newly created * * @param count * @param total */ public PartOfSetValue(Integer count, Integer total) { this.count = count; this.rawCount = count.toString(); this.total = total; this.rawTotal = total.toString(); resetValueFromCounts(); }
public void setCount(Integer count) { this.count = count; this.rawCount = count.toString(); resetValueFromCounts(); }
public void setCount(String count) { try { this.count = Integer.parseInt(count); this.rawCount = count; resetValueFromCounts(); } catch (NumberFormatException nfe) { } }
public void setTotal(String total) { try { this.total = Integer.parseInt(total); this.rawTotal = total; resetValueFromCounts(); } catch (NumberFormatException nfe) { } }
public void setTotal(Integer total) { this.total = total; this.rawTotal = total.toString(); resetValueFromCounts(); }