Class DefaultAbsoluteInstant

java.lang.Object
org.gvsig.timesupport.impl.DefaultAbsoluteInstant
All Implemented Interfaces:
Cloneable, org.gvsig.timesupport.AbsoluteInstant, org.gvsig.timesupport.Instant, org.gvsig.timesupport.Time, org.gvsig.tools.lang.Cloneable

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

    • size

      public int size()
      Specified by:
      size in interface org.gvsig.timesupport.AbsoluteInstant
    • getFieldType

      public org.gvsig.timesupport.AbsoluteInstantType getFieldType(int index)
      Specified by:
      getFieldType in interface org.gvsig.timesupport.AbsoluteInstant
    • getValue

      public int getValue(int index)
      Specified by:
      getValue in interface org.gvsig.timesupport.AbsoluteInstant
    • toString

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

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

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

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

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

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

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

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

      public int getYears()
      Specified by:
      getYears in interface org.gvsig.timesupport.AbsoluteInstant
    • getMonths

      public int getMonths()
      Specified by:
      getMonths in interface org.gvsig.timesupport.AbsoluteInstant
    • getWeeks

      public int getWeeks()
      Specified by:
      getWeeks in interface org.gvsig.timesupport.AbsoluteInstant
    • getDays

      public int getDays()
      Specified by:
      getDays in interface org.gvsig.timesupport.AbsoluteInstant
    • getHours

      public int getHours()
      Specified by:
      getHours in interface org.gvsig.timesupport.AbsoluteInstant
    • getMinutes

      public int getMinutes()
      Specified by:
      getMinutes in interface org.gvsig.timesupport.AbsoluteInstant
    • getSeconds

      public int getSeconds()
      Specified by:
      getSeconds in interface org.gvsig.timesupport.AbsoluteInstant
    • getMillis

      public int getMillis()
      Specified by:
      getMillis in interface org.gvsig.timesupport.AbsoluteInstant
    • isRelative

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

      public 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
    • intersects

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

      public org.gvsig.timesupport.AbsoluteInstant minus(org.gvsig.timesupport.AbsoluteInterval interval)
      Specified by:
      minus in interface org.gvsig.timesupport.AbsoluteInstant
    • plus

      public org.gvsig.timesupport.AbsoluteInstant plus(org.gvsig.timesupport.AbsoluteInterval interval)
      Specified by:
      plus in interface org.gvsig.timesupport.AbsoluteInstant
    • toStandardDuration

      public org.gvsig.timesupport.Duration toStandardDuration()
      Specified by:
      toStandardDuration in interface org.gvsig.timesupport.AbsoluteInstant