Class DefaultRelativeInstant

java.lang.Object
org.gvsig.timesupport.impl.DefaultRelativeInstant
All Implemented Interfaces:
Cloneable, org.gvsig.timesupport.Instant, org.gvsig.timesupport.RelativeInstant, org.gvsig.timesupport.Time, org.gvsig.tools.lang.Cloneable
Direct Known Subclasses:
DefaultEditableRelativeInstant

public class DefaultRelativeInstant extends Object implements org.gvsig.timesupport.RelativeInstant
Version:
$Id$
Author:
gvSIG team
  • Method Details

    • getHourOfDay

      public int getHourOfDay()
      Specified by:
      getHourOfDay in interface org.gvsig.timesupport.RelativeInstant
    • getMinuteOfHour

      public int getMinuteOfHour()
      Specified by:
      getMinuteOfHour in interface org.gvsig.timesupport.RelativeInstant
    • getSecondOfMinute

      public int getSecondOfMinute()
      Specified by:
      getSecondOfMinute in interface org.gvsig.timesupport.RelativeInstant
    • getMinuteOfDay

      public int getMinuteOfDay()
      Specified by:
      getMinuteOfDay in interface org.gvsig.timesupport.RelativeInstant
    • getSecondOfDay

      public int getSecondOfDay()
      Specified by:
      getSecondOfDay in interface org.gvsig.timesupport.RelativeInstant
    • getEditableCopy

      public org.gvsig.timesupport.EditableRelativeInstant getEditableCopy()
      Specified by:
      getEditableCopy in interface org.gvsig.timesupport.RelativeInstant
    • toMillis

      public long toMillis()
      Specified by:
      toMillis in interface org.gvsig.timesupport.RelativeInstant
    • toString

      public String toString(String pattern)
      Specified by:
      toString in interface org.gvsig.timesupport.Instant
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toDate

      public Date toDate()
      Specified by:
      toDate in interface org.gvsig.timesupport.RelativeInstant
    • isEqual

      public boolean isEqual(org.gvsig.timesupport.Instant instant)
      Specified by:
      isEqual in interface org.gvsig.timesupport.Instant
    • isAfter

      public boolean isAfter(org.gvsig.timesupport.Instant instant)
      Specified by:
      isAfter in interface org.gvsig.timesupport.Instant
    • isBefore

      public boolean isBefore(org.gvsig.timesupport.Instant instant)
      Specified by:
      isBefore in interface org.gvsig.timesupport.Instant
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getMillisOfSecond

      public int getMillisOfSecond()
      Specified by:
      getMillisOfSecond in interface org.gvsig.timesupport.RelativeInstant
    • getChronology

      public org.gvsig.timesupport.Chronology getChronology()
      Specified by:
      getChronology in interface org.gvsig.timesupport.Time
    • getYear

      public int getYear()
      Specified by:
      getYear in interface org.gvsig.timesupport.RelativeInstant
    • getMonthOfYear

      public int getMonthOfYear()
      Specified by:
      getMonthOfYear in interface org.gvsig.timesupport.RelativeInstant
    • getWeekOfWeekyear

      public int getWeekOfWeekyear()
    • getDayOfWeek

      public int getDayOfWeek()
    • getDayOfMonth

      public int getDayOfMonth()
      Specified by:
      getDayOfMonth in interface org.gvsig.timesupport.RelativeInstant
    • clone

      public Object clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • intersects

      public boolean intersects(org.gvsig.timesupport.Time time)
      Specified by:
      intersects in interface org.gvsig.timesupport.Time
    • isRelative

      public boolean isRelative()
      Specified by:
      isRelative in interface org.gvsig.timesupport.Time
    • isAbsolute

      public final boolean isAbsolute()
      Specified by:
      isAbsolute in interface org.gvsig.timesupport.Time
    • isInterval

      public final boolean isInterval()
      Specified by:
      isInterval in interface org.gvsig.timesupport.Time
    • isInstant

      public boolean isInstant()
      Specified by:
      isInstant in interface org.gvsig.timesupport.Time
    • compareTo

      public int compareTo(org.gvsig.timesupport.Instant instant)
      Specified by:
      compareTo in interface org.gvsig.timesupport.RelativeInstant