01: package org.columba.calendar.model;
02:
03: import org.columba.calendar.model.api.IWeekDay;
04:
05: public class WeekDay implements IWeekDay {
06:
07: private String day;
08: private int offset;
09:
10: public WeekDay(String day) {
11: this (day, 0);
12: }
13:
14: public WeekDay(String day, int offset) {
15: if (day == null)
16: throw new IllegalArgumentException("day == null");
17: this .day = day;
18: this .offset = offset;
19: }
20:
21: public String getDay() {
22: return day;
23: }
24:
25: public int getOffset() {
26: return offset;
27: }
28:
29: public void setDay(String day) {
30: if (day == null)
31: throw new IllegalArgumentException("day == null");
32: this .day = day;
33: }
34:
35: public void setOffset(int offset) {
36: this.offset = offset;
37: }
38:
39: }
|