public class RollCalendarCollision
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
|
RollCalendarCollision(CalendarCondition collisionCalendar,
int offset)
Deprecated.
Use RollCalendarCollision(CalendarCondition collisionCalendar, int adjustDays, char sign, CalendarCondition inCalendar) instead
|
|
RollCalendarCollision(CalendarCondition collisionCalendar,
int offset,
CalendarCondition inCalendar)
Deprecated.
Use RollCalendarCollision(CalendarCondition collisionCalendar, int adjustDays, char sign, CalendarCondition inCalendar) instead
|
|
RollCalendarCollision(CalendarCondition collisionCalendar,
int adjustDays,
char sign,
CalendarCondition inCalendar)
Constructs a new
RollCalendarCollision . |
protected |
RollCalendarCollision(org.w3c.dom.Element row) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAdjustDays()
Returns the number of days of adjustment.
|
char |
getAdjustSign() |
CalendarCondition |
getCollisionCalendar()
Returns the calendar object and keyword with which collisions may occur.
|
CalendarCondition |
getInCalendar()
Returns the calendar keyword whose area may be used when moving days.
|
int |
getOffset()
Deprecated.
use getAdjustSign() and getAdjustSign() instead
|
int |
hashCode() |
void |
setAdjustDays(int adjustDays)
Sets the number of days of adjustment.
|
void |
setAdjustSign(char sign)
Sets the sign of the adjust offset.
|
void |
setCollisionCalendar(CalendarCondition collisionCalendar)
Sets the calendar object and keyword with which collisions may occur.
|
void |
setInCalendar(CalendarCondition inCalendar)
Sets the calendar keyword whose area may be used when moving days.
|
void |
setOffset(int offset)
Deprecated.
use setAdjustSign() and setAdjustSign() instead
|
protected void |
store(org.w3c.dom.Element row) |
java.lang.String |
toString() |
@Deprecated public RollCalendarCollision(CalendarCondition collisionCalendar, int offset)
RollCalendarCollision
.
Offset can be set to 0
if skip should be used as action.collisionCalendar
- Calendar object and keyword with which collisions may occuroffset
- Positive or negative integer containg the number of days@Deprecated public RollCalendarCollision(CalendarCondition collisionCalendar, int offset, CalendarCondition inCalendar)
RollCalendarCollision
.
Offset can be set to 0
if skip should be used as action.collisionCalendar
- Calendar object and keyword with which collisions may occuroffset
- Positive or negative integer containg the number of daysinCalendar
- Specify a particular Calendar keyword whose area may be used, can be nullpublic RollCalendarCollision(CalendarCondition collisionCalendar, int adjustDays, char sign, CalendarCondition inCalendar)
RollCalendarCollision
.
Offset can be set to 0
if skip should be used as action.collisionCalendar
- Calendar object and keyword with which collisions may occuradjustDays
- Positive integer containg the number of dayssign
- Action (+,- or S for Skip)inCalendar
- Specify a particular Calendar keyword whose area may be used, can be nullprotected RollCalendarCollision(org.w3c.dom.Element row)
public int getAdjustDays()
public void setAdjustDays(int adjustDays)
adjustDays
- Integer containing the day offsetpublic void setAdjustSign(char sign)
sign
- Sign '+', '-' or 'S' (skip)public char getAdjustSign()
public CalendarCondition getCollisionCalendar()
public void setCollisionCalendar(CalendarCondition collisionCalendar)
collisionCalendar
- Calendar object and keyword with which collisions may occurpublic CalendarCondition getInCalendar()
public void setInCalendar(CalendarCondition inCalendar)
inCalendar
can be set to null
if
no area should be considered when moving days.inCalendar
- Calendar keyword whose area may be used when moving days@Deprecated public int getOffset()
@Deprecated public void setOffset(int offset)
offset
- Offset in daysprotected void store(org.w3c.dom.Element row)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object