Class DefaultAbsoluteInterval

java.lang.Object
org.gvsig.timesupport.impl.DefaultAbsoluteInterval
All Implemented Interfaces:
Cloneable, org.gvsig.timesupport.AbsoluteInterval, org.gvsig.timesupport.Interval, org.gvsig.timesupport.Time, org.gvsig.tools.lang.Cloneable

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

    • size

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

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

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

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

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

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

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

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

      public int getWeeks()
    • getDays

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

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

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

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

      public int getMillis()
      Specified by:
      getMillis in interface org.gvsig.timesupport.AbsoluteInterval
    • isAfter

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

      public boolean isBefore(org.gvsig.timesupport.AbsoluteInterval period)
      Specified by:
      isBefore in interface org.gvsig.timesupport.AbsoluteInterval
    • clone

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

      public org.gvsig.timesupport.AbsoluteInstant getStart()
      Specified by:
      getStart in interface org.gvsig.timesupport.AbsoluteInterval
      Specified by:
      getStart in interface org.gvsig.timesupport.Interval
    • getEnd

      public org.gvsig.timesupport.AbsoluteInstant getEnd()
      Specified by:
      getEnd in interface org.gvsig.timesupport.AbsoluteInterval
      Specified by:
      getEnd in interface org.gvsig.timesupport.Interval
    • 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 boolean isInterval()
      Specified by:
      isInterval in interface org.gvsig.timesupport.Time
    • isInstant

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

      public boolean intersects(org.gvsig.timesupport.AbsoluteInterval absoluteInsterInterval)
    • contains

      public boolean contains(org.gvsig.timesupport.Instant instant)
      Specified by:
      contains in interface org.gvsig.timesupport.Interval
    • toStandardDuration

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