@Test public void testgetCodeforMillis() { assertEquals('M', m1234.getCode()); }
public static char getCode(TimeType type) { switch (type) { case MILLIS: return 'M'; case LOGICAL: return 'L'; default: throw new IllegalArgumentException("Unknown time type: " + type); } }
MetadataTime implements Comparable<MetadataTime> { public static char getCode(TimeType type) { switch (type) { case MILLIS: return 'M'; case LOGICAL: return 'L'; default: throw new IllegalArgumentException("Unknown time type: " + type); } } }
MetadataTime implements Comparable<MetadataTime> { public static char getCode(TimeType type) { switch (type) { case MILLIS: return 'M'; case LOGICAL: return 'L'; default: throw new IllegalArgumentException("Unknown time type: " + type); } } MetadataTime(long time, TimeType type); }
MetadataTime implements Comparable<MetadataTime> { public static char getCode(TimeType type) { switch (type) { case MILLIS: return 'M'; case LOGICAL: return 'L'; default: throw new IllegalArgumentException("Unknown time type: " + type); } } MetadataTime(long time, TimeType type); static MetadataTime parse(String timestr); static TimeType getType(char code); static char getCode(TimeType type); char getCode(); String encode(); TimeType getType(); long getTime(); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(MetadataTime mtime); }
MetadataTime implements Comparable<MetadataTime> { public static char getCode(TimeType type) { switch (type) { case MILLIS: return 'M'; case LOGICAL: return 'L'; default: throw new IllegalArgumentException("Unknown time type: " + type); } } MetadataTime(long time, TimeType type); static MetadataTime parse(String timestr); static TimeType getType(char code); static char getCode(TimeType type); char getCode(); String encode(); TimeType getType(); long getTime(); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(MetadataTime mtime);  }