@Test public void testToString() { String result = intervalLength1.toString(); assertFalse(intervalLength2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("IntervalLength:").append('\n'); if (unit != null) { s.append("unit:").append(unit).append('\n'); } s.append("radix:").append(radix).append('\n'); s.append("factor:").append(factor).append('\n'); s.append("value:").append(value).append('\n'); return s.toString(); }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public String toString() { StringBuilder s = new StringBuilder("IntervalLength:").append('\n'); if (unit != null) { s.append("unit:").append(unit).append('\n'); } s.append("radix:").append(radix).append('\n'); s.append("factor:").append(factor).append('\n'); s.append("value:").append(value).append('\n'); return s.toString(); } }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public String toString() { StringBuilder s = new StringBuilder("IntervalLength:").append('\n'); if (unit != null) { s.append("unit:").append(unit).append('\n'); } s.append("radix:").append(radix).append('\n'); s.append("factor:").append(factor).append('\n'); s.append("value:").append(value).append('\n'); return s.toString(); } DefaultIntervalLength(Unit unit, int radix, int factor, int value); }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public String toString() { StringBuilder s = new StringBuilder("IntervalLength:").append('\n'); if (unit != null) { s.append("unit:").append(unit).append('\n'); } s.append("radix:").append(radix).append('\n'); s.append("factor:").append(factor).append('\n'); s.append("value:").append(value).append('\n'); return s.toString(); } DefaultIntervalLength(Unit unit, int radix, int factor, int value); Unit getUnit(); int getRadix(); int getFactor(); int getValue(); @Override long getTimeInMillis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public String toString() { StringBuilder s = new StringBuilder("IntervalLength:").append('\n'); if (unit != null) { s.append("unit:").append(unit).append('\n'); } s.append("radix:").append(radix).append('\n'); s.append("factor:").append(factor).append('\n'); s.append("value:").append(value).append('\n'); return s.toString(); } DefaultIntervalLength(Unit unit, int radix, int factor, int value); Unit getUnit(); int getRadix(); int getFactor(); int getValue(); @Override long getTimeInMillis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }