@Test public void testToString() { String result = temporalCoordinate1.toString(); assertFalse(temporalCoordinate2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("TemporalCoordinate:").append('\n'); if (getFrame() != null){ s.append("TemporalReferenceSystem:").append(getFrame()).append('\n'); } if(getIndeterminatePosition() != null) { s.append("IndeterminateValue:").append(getIndeterminatePosition()).append('\n'); } if (coordinateValue != null) { s.append("coordinateValue:").append(coordinateValue).append('\n'); } return s.toString(); }
DefaultTemporalCoordinate extends DefaultTemporalPosition implements TemporalCoordinate { @Override public String toString() { StringBuilder s = new StringBuilder("TemporalCoordinate:").append('\n'); if (getFrame() != null){ s.append("TemporalReferenceSystem:").append(getFrame()).append('\n'); } if(getIndeterminatePosition() != null) { s.append("IndeterminateValue:").append(getIndeterminatePosition()).append('\n'); } if (coordinateValue != null) { s.append("coordinateValue:").append(coordinateValue).append('\n'); } return s.toString(); } }
DefaultTemporalCoordinate extends DefaultTemporalPosition implements TemporalCoordinate { @Override public String toString() { StringBuilder s = new StringBuilder("TemporalCoordinate:").append('\n'); if (getFrame() != null){ s.append("TemporalReferenceSystem:").append(getFrame()).append('\n'); } if(getIndeterminatePosition() != null) { s.append("IndeterminateValue:").append(getIndeterminatePosition()).append('\n'); } if (coordinateValue != null) { s.append("coordinateValue:").append(coordinateValue).append('\n'); } return s.toString(); } DefaultTemporalCoordinate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, Number coordinateValue); }
DefaultTemporalCoordinate extends DefaultTemporalPosition implements TemporalCoordinate { @Override public String toString() { StringBuilder s = new StringBuilder("TemporalCoordinate:").append('\n'); if (getFrame() != null){ s.append("TemporalReferenceSystem:").append(getFrame()).append('\n'); } if(getIndeterminatePosition() != null) { s.append("IndeterminateValue:").append(getIndeterminatePosition()).append('\n'); } if (coordinateValue != null) { s.append("coordinateValue:").append(coordinateValue).append('\n'); } return s.toString(); } DefaultTemporalCoordinate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, Number coordinateValue); Number getCoordinateValue(); void setCoordinateValue(Number coordinateValue); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultTemporalCoordinate extends DefaultTemporalPosition implements TemporalCoordinate { @Override public String toString() { StringBuilder s = new StringBuilder("TemporalCoordinate:").append('\n'); if (getFrame() != null){ s.append("TemporalReferenceSystem:").append(getFrame()).append('\n'); } if(getIndeterminatePosition() != null) { s.append("IndeterminateValue:").append(getIndeterminatePosition()).append('\n'); } if (coordinateValue != null) { s.append("coordinateValue:").append(coordinateValue).append('\n'); } return s.toString(); } DefaultTemporalCoordinate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, Number coordinateValue); Number getCoordinateValue(); void setCoordinateValue(Number coordinateValue); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }