Class RelativeTimePeriod


  • public class RelativeTimePeriod
    extends java.lang.Object

    RelativeTimePeriod class.

    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    ranger
    • Field Detail

      • DEFAULT_RELATIVE_TIME_PERIOD

        public static final RelativeTimePeriod DEFAULT_RELATIVE_TIME_PERIOD
    • Constructor Detail

      • RelativeTimePeriod

        public RelativeTimePeriod()

        Constructor for RelativeTimePeriod.

      • RelativeTimePeriod

        public RelativeTimePeriod​(java.lang.String id,
                                  java.lang.String name,
                                  int offsetField,
                                  int offsetAmount)

        Constructor for RelativeTimePeriod.

        Parameters:
        id - a String object.
        name - a String object.
        offsetField - a int.
        offsetAmount - a int.
    • Method Detail

      • getId

        public java.lang.String getId()

        getId

        Returns:
        a String object.
      • setId

        public void setId​(java.lang.String id)

        setId

        Parameters:
        id - a String object.
      • getName

        public java.lang.String getName()

        getName

        Returns:
        a String object.
      • setName

        public void setName​(java.lang.String name)

        setName

        Parameters:
        name - a String object.
      • getOffsetField

        public int getOffsetField()

        getOffsetField

        Returns:
        a int.
      • setOffsetField

        public void setOffsetField​(int offsetField)

        setOffsetField

        Parameters:
        offsetField - a int.
      • getOffsetAmount

        public int getOffsetAmount()

        getOffsetAmount

        Returns:
        a int.
      • setOffsetAmount

        public void setOffsetAmount​(int offsetAmount)

        setOffsetAmount

        Parameters:
        offsetAmount - a int.
      • getPeriodByIdOrDefault

        public static RelativeTimePeriod getPeriodByIdOrDefault​(java.lang.String id)

        getPeriodByIdOrDefault

        Parameters:
        id - a String object.
        Returns:
        a RelativeTimePeriod object.
      • getStartAndEndTimes

        public long[] getStartAndEndTimes()

        getStartAndEndTimes

        Returns:
        an array of long.