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