Interface EditableRelativeInstant

All Superinterfaces:
Cloneable, org.gvsig.tools.lang.Cloneable, Instant, RelativeInstant, Time

public interface EditableRelativeInstant extends RelativeInstant

The RelativeInstant ins inmutable, but sometimes is necessary to edit it. This class is an editable copy of a realtive instant that cab be edited.

A huge part of the documentation of this class has been retrieved from the joda-time library.

Version:
$Id$
Author:
gvSIG Team
  • Method Details

    • setTime

      void setTime(int hour, int minuteOfHour, int secondOfMinute, int millisOfSecond)
      Set the time from fields. The date part of this object will be unaffected.
      Parameters:
      hour - the hour
      minuteOfHour - the minute of the hour
      secondOfMinute - the second of the minute
      millisOfSecond - the millisecond of the second
      Throws:
      IllegalArgumentException - if the value is invalid
    • setDate

      void setDate(int year, int monthOfYear, int dayOfMonth)
      Set the date from fields. The time part of this object will be unaffected.
      Parameters:
      year - the year
      monthOfYear - the month of the year
      dayOfMonth - the day of the month
      Throws:
      IllegalArgumentException - if the value is invalid
    • addYears

      void addYears(int years)
      Add a number of years to the date.
      Parameters:
      years - the years to add
      Throws:
      IllegalArgumentException - if the value is invalid
    • addDays

      void addDays(int days)
      Add a number of days to the date.
      Parameters:
      days - the days to add
      Throws:
      IllegalArgumentException - if the value is invalid
    • addHours

      void addHours(int hours)
      Add a number of hours to the date.
      Parameters:
      hours - the hours to add
      Throws:
      IllegalArgumentException - if the value is invalid
    • addMinutes

      void addMinutes(int minutes)
      Add a number of minutes to the date.
      Parameters:
      minutes - the minutes to add
      Throws:
      IllegalArgumentException - if the value is invalid
    • addSeconds

      void addSeconds(int seconds)
      Add a number of seconds to the date.
      Parameters:
      seconds - the seconds to add
      Throws:
      IllegalArgumentException - if the value is invalid
    • addMillis

      void addMillis(int millis)
      Add a number of millis to the date.
      Parameters:
      millis - the millis to add
      Throws:
      IllegalArgumentException - if the value is invalid