@Test public void testGetDateTime() { InternationalString result = position1.getDateTime(); assertFalse(position2.getDateTime().equals(result)); }
public InternationalString getDateTime() { if (this.position instanceof Date) { String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(DATE_FORMAT); return new SimpleInternationalString(dateFormat.format(position)); } return null; }
DefaultPosition implements Position { public InternationalString getDateTime() { if (this.position instanceof Date) { String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(DATE_FORMAT); return new SimpleInternationalString(dateFormat.format(position)); } return null; } }
DefaultPosition implements Position { public InternationalString getDateTime() { if (this.position instanceof Date) { String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(DATE_FORMAT); return new SimpleInternationalString(dateFormat.format(position)); } return null; } DefaultPosition(final Date date);  DefaultPosition(final InternationalString datetime);  DefaultPosition(final TemporalPosition anyOther); }
DefaultPosition implements Position { public InternationalString getDateTime() { if (this.position instanceof Date) { String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(DATE_FORMAT); return new SimpleInternationalString(dateFormat.format(position)); } return null; } DefaultPosition(final Date date);  DefaultPosition(final InternationalString datetime);  DefaultPosition(final TemporalPosition anyOther); TemporalPosition anyOther(); Date getDate(); Time getTime(); InternationalString getDateTime(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultPosition implements Position { public InternationalString getDateTime() { if (this.position instanceof Date) { String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(DATE_FORMAT); return new SimpleInternationalString(dateFormat.format(position)); } return null; } DefaultPosition(final Date date);  DefaultPosition(final InternationalString datetime);  DefaultPosition(final TemporalPosition anyOther); TemporalPosition anyOther(); Date getDate(); Time getTime(); InternationalString getDateTime(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }