@Test public void testToString() { String result = temporalPosition1.toString(); assertFalse(temporalPosition2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("TemporalPosition:").append('\n'); if (frame != null) { s.append("frame:").append(frame).append('\n'); } if (indeterminatePosition != null) { s.append("indeterminatePosition:").append(indeterminatePosition).append('\n'); } return s.toString(); }
DefaultTemporalPosition implements TemporalPosition { @Override public String toString() { StringBuilder s = new StringBuilder("TemporalPosition:").append('\n'); if (frame != null) { s.append("frame:").append(frame).append('\n'); } if (indeterminatePosition != null) { s.append("indeterminatePosition:").append(indeterminatePosition).append('\n'); } return s.toString(); } }
DefaultTemporalPosition implements TemporalPosition { @Override public String toString() { StringBuilder s = new StringBuilder("TemporalPosition:").append('\n'); if (frame != null) { s.append("frame:").append(frame).append('\n'); } if (indeterminatePosition != null) { s.append("indeterminatePosition:").append(indeterminatePosition).append('\n'); } return s.toString(); } DefaultTemporalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition); }
DefaultTemporalPosition implements TemporalPosition { @Override public String toString() { StringBuilder s = new StringBuilder("TemporalPosition:").append('\n'); if (frame != null) { s.append("frame:").append(frame).append('\n'); } if (indeterminatePosition != null) { s.append("indeterminatePosition:").append(indeterminatePosition).append('\n'); } return s.toString(); } DefaultTemporalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition); IndeterminateValue getIndeterminatePosition(); TemporalReferenceSystem getFrame(); void setFrame(TemporalReferenceSystem frame); void setIndeterminatePosition(IndeterminateValue indeterminatePosition); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultTemporalPosition implements TemporalPosition { @Override public String toString() { StringBuilder s = new StringBuilder("TemporalPosition:").append('\n'); if (frame != null) { s.append("frame:").append(frame).append('\n'); } if (indeterminatePosition != null) { s.append("indeterminatePosition:").append(indeterminatePosition).append('\n'); } return s.toString(); } DefaultTemporalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition); IndeterminateValue getIndeterminatePosition(); TemporalReferenceSystem getFrame(); void setFrame(TemporalReferenceSystem frame); void setIndeterminatePosition(IndeterminateValue indeterminatePosition); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }