The enum type needs an appropriate constructor:
0567: public enum ShopDay // ShopDay.java
0568: {
0569: Sunday (new Time("10:00"), new Time("16:00")),
0570: Monday (new Time("08:00"), new Time("17:30")),
0571: Tuesday (new Time("08:00"), new Time("17:30")),
0572: Wednesday(new Time("08:00"), new Time("17:30")),
0573: Thursday (new Time("08:00"), new Time("17:30")),
0574: Friday (new Time("08:00"), new Time("17:30")),
0575: Saturday (new Time("09:00"), new Time("12:30"));
0576: private Time iStartTime;
0577: private Time iFinishTime;
0578: private ShopDay(Time pStartTime, Time pFinishTime)
0579: {
0580: iStartTime = pStartTime;
0581: iFinishTime = pFinishTime;
0582: }
0583: public Time getStartTime()
0584: {
0585: return iStartTime;
0586: }
0587: public Time getFinishTime()
0588: {
0589: return iFinishTime;
0590: }
0591: }