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 day; 8 private int offset; 9 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 } 40 | Popular Tags |