~ubuntu-branches/ubuntu/natty/libjoda-time-java/natty

« back to all changes in this revision

Viewing changes to src/java/org/joda/time/MutablePeriod.java

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2008-02-22 00:37:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080222003748-hbelrqlvxqlq8oic
Tags: 1.5.2-1
* New upstream release
* Add myself to Uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
import org.joda.time.base.BasePeriod;
21
21
import org.joda.time.field.FieldUtils;
 
22
import org.joda.time.format.ISOPeriodFormat;
22
23
 
23
24
/**
24
25
 * Standard mutable time period implementation.
330
331
    }
331
332
 
332
333
    /**
333
 
     * Creates a period from the specified object using the
334
 
     * {@link org.joda.time.convert.ConverterManager ConverterManager}.
 
334
     * Creates a period by converting or copying from another object.
 
335
     * <p>
 
336
     * The recognised object types are defined in
 
337
     * {@link org.joda.time.convert.ConverterManager ConverterManager} and
 
338
     * include ReadablePeriod, ReadableInterval and String.
 
339
     * The String formats are described by {@link ISOPeriodFormat#standard()}.
335
340
     *
336
341
     * @param period  period to convert
337
342
     * @throws IllegalArgumentException if period is invalid
342
347
    }
343
348
 
344
349
    /**
345
 
     * Creates a period from the specified object using the
346
 
     * {@link org.joda.time.convert.ConverterManager ConverterManager}.
 
350
     * Creates a period by converting or copying from another object.
 
351
     * <p>
 
352
     * The recognised object types are defined in
 
353
     * {@link org.joda.time.convert.ConverterManager ConverterManager} and
 
354
     * include ReadablePeriod, ReadableInterval and String.
 
355
     * The String formats are described by {@link ISOPeriodFormat#standard()}.
347
356
     *
348
357
     * @param period  period to convert
349
358
     * @param type  which set of fields this period supports, null means use converter
355
364
    }
356
365
 
357
366
    /**
358
 
     * Creates a period from the specified object using the
359
 
     * {@link org.joda.time.convert.ConverterManager ConverterManager}.
 
367
     * Creates a period by converting or copying from another object.
 
368
     * <p>
 
369
     * The recognised object types are defined in
 
370
     * {@link org.joda.time.convert.ConverterManager ConverterManager} and
 
371
     * include ReadablePeriod, ReadableInterval and String.
 
372
     * The String formats are described by {@link ISOPeriodFormat#standard()}.
360
373
     *
361
374
     * @param period  period to convert
362
375
     * @param chrono  the chronology to use, null means ISO in default zone
368
381
    }
369
382
 
370
383
    /**
371
 
     * Creates a period from the specified object using the
372
 
     * {@link org.joda.time.convert.ConverterManager ConverterManager}.
 
384
     * Creates a period by converting or copying from another object.
 
385
     * <p>
 
386
     * The recognised object types are defined in
 
387
     * {@link org.joda.time.convert.ConverterManager ConverterManager} and
 
388
     * include ReadablePeriod, ReadableInterval and String.
 
389
     * The String formats are described by {@link ISOPeriodFormat#standard()}.
373
390
     *
374
391
     * @param period  period to convert
375
392
     * @param type  which set of fields this period supports, null means use converter