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
Modifier and TypeFieldDescriptionstatic final Month
static final Month
static final Month
static final Month
static final Month
static final Month
static final Month
static final Month
static final int
static final Month
static final Month[]
protected int
static final Month
static final int
static final int[]
static final Month
static final Month
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
int
boolean
int
Return all month from first to last.int
Get number of days.int
hashCode()
next()
previous()
void
setMonthNumber
(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:
compareTo
in 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
-