Package fr.ifremer.isisfish.types
Class Month
java.lang.Object
fr.ifremer.isisfish.types.Month
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Month>
Month.
Created: 7 nov. 2005
- Version:
- $Revision$
- Author:
- Code Lutin Dev
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Monthstatic final Monthstatic final Monthstatic final Monthstatic final Monthstatic final Monthstatic final Monthstatic final Monthstatic final intstatic final Monthstatic final Month[]protected intstatic final Monthstatic final intstatic final int[]static final Monthstatic final Month -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanintbooleanintReturn all month from first to last.intGet number of days.inthashCode()next()previous()voidsetMonthNumber(int monthNumber) toString()
-
Field Details
-
JANUARY
-
FEBRUARY
-
MARCH
-
APRIL
-
MAY
-
JUNE
-
JULY
-
AUGUST
-
SEPTEMBER
-
OCTOBER
-
NOVEMBER
-
DECEMBER
-
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
-
previous
-
hashCode
public int hashCode() -
equals
-
toString
-
before
-
after
-
beforeOrEquals
-
afterOrEquals
-
compareTo
- Specified by:
compareToin interfaceComparable<Month>
-
getNumbersOfDays
public int getNumbersOfDays()Get number of days.- Returns:
- number of day
-
getMonths
Return all month from first to last. example: november, february return [november, decemer, january, february]- Parameters:
first-last-- Returns:
- month list
-