@Test public void testenCode() { assertEquals("M21", new MetadataTime(21, TimeType.MILLIS).encode()); assertEquals("L45678", new MetadataTime(45678, TimeType.LOGICAL).encode()); }
public String encode() { return "" + getCode() + time; }
MetadataTime implements Comparable<MetadataTime> { public String encode() { return "" + getCode() + time; } }
MetadataTime implements Comparable<MetadataTime> { public String encode() { return "" + getCode() + time; } MetadataTime(long time, TimeType type); }
MetadataTime implements Comparable<MetadataTime> { public String encode() { return "" + getCode() + time; } 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 String encode() { return "" + getCode() + time; } 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);  }