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
NumberFormatException
public Month(int month, String timezone) throws NumberFormatException
NumberFormatException
public Month(String source) throws NumberFormatException
NumberFormatException
public int getMonth()
public void setMonth(int month)
public String getTimezone()
public void setTimezone(String timezone)
public void setValue(int month, String timezone) throws NumberFormatException
NumberFormatException
public void setValue(int month) throws NumberFormatException
NumberFormatException
Copyright © The Apache Software Foundation. All Rights Reserved.