Class Month

java.lang.Object
fr.ifremer.isisfish.types.Month
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Month>

public class Month extends Object implements Cloneable, Serializable, Comparable<Month>
Month. Created: 7 nov. 2005
Version:
$Revision$
Author:
Code Lutin Dev
See Also:
  • Field Details

    • JANUARY

      public static final Month JANUARY
    • FEBRUARY

      public static final Month FEBRUARY
    • MARCH

      public static final Month MARCH
    • APRIL

      public static final Month APRIL
    • MAY

      public static final Month MAY
    • JUNE

      public static final Month JUNE
    • JULY

      public static final Month JULY
    • AUGUST

      public static final Month AUGUST
    • SEPTEMBER

      public static final Month SEPTEMBER
    • OCTOBER

      public static final Month OCTOBER
    • NOVEMBER

      public static final Month NOVEMBER
    • DECEMBER

      public static final Month DECEMBER
    • MONTH

      public static final Month[] MONTH
    • NUMBERS_OF_DAYS

      public static final int[] NUMBERS_OF_DAYS
    • NUMBER_OF_MONTH

      public static final int NUMBER_OF_MONTH
    • MAX_MONTH_NUMBER

      public static final int MAX_MONTH_NUMBER
    • monthNumber

      protected int monthNumber
  • Constructor Details

    • Month

      public Month(int monthNumber)
  • Method Details

    • getMonthNumber

      public int getMonthNumber()
      Returns:
      Returns the monthNumber.
    • setMonthNumber

      public void setMonthNumber(int monthNumber)
      Parameters:
      monthNumber - The monthNumber to set.
    • next

      public Month next()
    • previous

      public Month previous()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

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

      public boolean before(Month d)
    • after

      public boolean after(Month d)
    • beforeOrEquals

      public boolean beforeOrEquals(Month d)
    • afterOrEquals

      public boolean afterOrEquals(Month d)
    • compareTo

      public int compareTo(Month d)
      Specified by:
      compareTo in interface Comparable<Month>
    • getNumbersOfDays

      public int getNumbersOfDays()
      Get number of days.
      Returns:
      number of day
    • getMonths

      public static List<Month> getMonths(Month first, Month last)
      Return all month from first to last. example: november, february return [november, decemer, january, february]
      Parameters:
      first -
      last -
      Returns:
      month list