KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > calendar > model > WeekDay


1 package org.columba.calendar.model;
2
3 import org.columba.calendar.model.api.IWeekDay;
4
5 public class WeekDay implements IWeekDay {
6     
7     private String JavaDoc day;
8     private int offset;
9     
10     public WeekDay(String JavaDoc day) {
11         this(day, 0);
12     }
13     
14     public WeekDay(String JavaDoc day, int offset) {
15         if (day == null)
16             throw new IllegalArgumentException JavaDoc("day == null");
17         this.day = day;
18         this.offset = offset;
19     }
20
21     public String JavaDoc getDay() {
22         return day;
23     }
24
25     public int getOffset() {
26         return offset;
27     }
28
29     public void setDay(String JavaDoc day) {
30         if (day == null)
31             throw new IllegalArgumentException JavaDoc("day == null");
32         this.day = day;
33     }
34
35     public void setOffset(int offset) {
36         this.offset = offset;
37     }
38
39 }
40
Popular Tags