1 37 46 package net.sourceforge.cruisecontrol.sourcecontrols.accurev; 47 48 69 public abstract class Timespec { 70 private int count; 71 private boolean hasCount; 72 73 76 public Timespec() { 77 } 78 79 84 public Timespec(int count) { 85 this.count = count; 86 this.hasCount = true; 87 } 88 89 94 public abstract String format(); 95 96 public String toString() { 97 StringBuffer buf = new StringBuffer (); 98 buf.append(format()); 99 if (hasCount) { 100 buf.append("."); 101 buf.append(count); 102 } 103 return buf.toString(); 104 } 105 } 106 | Popular Tags |