public class Month extends Object implements Serializable
| Constructor and Description |
|---|
Month(int month)
Constructs a Month with the given values
No timezone is specified
|
Month(int month,
String timezone)
Constructs a Month with the given values, including a timezone string
The timezone is validated but not used.
|
Month(String source)
Construct a Month from a String in the format --MM--[timezone]
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getMonth() |
String |
getTimezone() |
int |
hashCode()
Return the value of month XORed with the hashCode of timezone
iff one is defined.
|
void |
setMonth(int month) |
void |
setTimezone(String timezone) |
void |
setValue(int month) |
void |
setValue(int month,
String timezone) |
String |
toString() |
public Month(int month)
throws NumberFormatException
NumberFormatExceptionpublic Month(int month,
String timezone)
throws NumberFormatException
NumberFormatExceptionpublic Month(String source) throws NumberFormatException
NumberFormatExceptionpublic int getMonth()
public void setMonth(int month)
public String getTimezone()
public void setTimezone(String timezone)
public void setValue(int month,
String timezone)
throws NumberFormatException
NumberFormatExceptionpublic void setValue(int month)
throws NumberFormatException
NumberFormatExceptionCopyright © The Apache Software Foundation. All Rights Reserved.