1 16 package org.joda.time; 17 18 28 public interface ReadWritablePeriod extends ReadablePeriod { 29 30 33 void clear(); 34 35 42 void setValue(int index, int value); 43 44 53 void set(DurationFieldType field, int value); 54 55 61 void setPeriod(ReadablePeriod period); 62 63 76 void setPeriod(int years, int months, int weeks, int days, 77 int hours, int minutes, int seconds, int millis); 78 79 85 void setPeriod(ReadableInterval interval); 86 87 97 void add(DurationFieldType field, int value); 98 99 107 void add(ReadablePeriod period); 108 109 124 void add(int years, int months, int weeks, int days, 125 int hours, int minutes, int seconds, int millis); 126 127 134 void add(ReadableInterval interval); 135 136 143 void setYears(int years); 144 145 152 void addYears(int years); 153 154 161 void setMonths(int months); 162 163 170 void addMonths(int months); 171 172 179 void setWeeks(int weeks); 180 181 188 void addWeeks(int weeks); 189 190 197 void setDays(int days); 198 199 206 void addDays(int days); 207 208 215 void setHours(int hours); 216 217 224 void addHours(int hours); 225 226 233 void setMinutes(int minutes); 234 235 242 void addMinutes(int minutes); 243 244 251 void setSeconds(int seconds); 252 253 260 void addSeconds(int seconds); 261 262 269 void setMillis(int millis); 270 271 278 void addMillis(int millis); 279 280 } 281 | Popular Tags |