Exemple #1
0
  public Metadata encodeMetadata() {
    Metadata meta = new Metadata();
    meta.put(FN_START, mStart.getDateTimePartString(false));
    if (mHasEnd) meta.put(FN_END, mEnd.getDateTimePartString(false));
    else meta.put(FN_DURATION, mDuration);

    return meta;
  }
Exemple #2
0
 public String toString() {
   StringBuilder sb = new StringBuilder(mStart.getDateTimePartString(false));
   sb.append("/");
   if (mHasEnd) {
     if (mEnd != null) sb.append(mEnd.getDateTimePartString(false));
   } else {
     if (mDuration != null) sb.append(mDuration.toString());
   }
   return sb.toString();
 }