// Path: HSRTimeTable/src/ch/scythe/hsr/enumeration/Weekday.java
// public enum Weekday implements Serializable {
// 
// 	MONDAY(1, 2, R.string.weekday_monday), TUESDAY(2, 3, R.string.weekday_tuesday), WEDNESDAY(3, 4, R.string.weekday_wednesday), THURSDAY(4, 5,
// 			R.string.weekday_thursday), FRIDAY(5, 6, R.string.weekday_friday), SATURDAY(6, 7, R.string.weekday_saturday), SUNDAY(7, 1, R.string.weekday_sunday);
// 
// 	private final Integer id;
// 	private final Integer javaId;
// 
// 	private static final Map<Integer, Weekday> lookupByJavaId = new LinkedHashMap<Integer, Weekday>();
// 	private static final Map<Integer, Weekday> lookupById = new LinkedHashMap<Integer, Weekday>();
// 	private final int resourceReference;
// 
// 	static {
// 		for (Weekday day : EnumSet.allOf(Weekday.class)) {
// 			lookupByJavaId.put(day.getJavaId(), day);
// 			lookupById.put(day.getId(), day);
// 		}
// 	}
// 
// 	private Weekday(Integer id, Integer javaId, int resourceReference) {
// 		this.id = id;
// 		this.javaId = javaId;
// 		this.resourceReference = resourceReference;
// 	}
// 
// 	public Integer getId() {
// 		return id;
// 	}
// 
// 	/** @see Calendar#DAY_OF_WEEK */
// 	public Integer getJavaId() {
// 		return javaId;
// 	}
// 
// 	public static Weekday getById(Integer id) {
// 		return lookupById.get(id);
// 
// 	}
// 
// 	public static Weekday getByDate(Date date) {
// 		Calendar calendar = Calendar.getInstance();
// 		calendar.setTime(date);
// 		return lookupByJavaId.get(calendar.get(Calendar.DAY_OF_WEEK));
// 	}
// 
// 	public int getResourceReference() {
// 		return resourceReference;
// 	}
// 
// }


import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import ch.scythe.hsr.enumeration.Weekday;
/* 
 * Copyright (C) 2011 - 2013 Michi Gysel <michael.gysel@gmail.com>
 *
 * This file is part of the HSR Timetable.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ch.scythe.hsr.api.ui;



public class UiDay implements Serializable {

	private static final long serialVersionUID = 1L;
	private final Weekday weekday;
	private List<UiLesson> lessons = new ArrayList<UiLesson>();

// Path: HSRTimeTable/src/ch/scythe/hsr/enumeration/Weekday.java
// public enum Weekday implements Serializable {
// 
// 	MONDAY(1, 2, R.string.weekday_monday), TUESDAY(2, 3, R.string.weekday_tuesday), WEDNESDAY(3, 4, R.string.weekday_wednesday), THURSDAY(4, 5,
// 			R.string.weekday_thursday), FRIDAY(5, 6, R.string.weekday_friday), SATURDAY(6, 7, R.string.weekday_saturday), SUNDAY(7, 1, R.string.weekday_sunday);
// 
// 	private final Integer id;
// 	private final Integer javaId;
// 
// 	private static final Map<Integer, Weekday> lookupByJavaId = new LinkedHashMap<Integer, Weekday>();
// 	private static final Map<Integer, Weekday> lookupById = new LinkedHashMap<Integer, Weekday>();
// 	private final int resourceReference;
// 
// 	static {
// 		for (Weekday day : EnumSet.allOf(Weekday.class)) {
// 			lookupByJavaId.put(day.getJavaId(), day);
// 			lookupById.put(day.getId(), day);
// 		}
// 	}
// 
// 	private Weekday(Integer id, Integer javaId, int resourceReference) {
// 		this.id = id;
// 		this.javaId = javaId;
// 		this.resourceReference = resourceReference;
// 	}
// 
// 	public Integer getId() {
// 		return id;
// 	}
// 
// 	/** @see Calendar#DAY_OF_WEEK */
// 	public Integer getJavaId() {
// 		return javaId;
// 	}
// 
// 	public static Weekday getById(Integer id) {
// 		return lookupById.get(id);
// 
// 	}
// 
// 	public static Weekday getByDate(Date date) {
// 		Calendar calendar = Calendar.getInstance();
// 		calendar.setTime(date);
// 		return lookupByJavaId.get(calendar.get(Calendar.DAY_OF_WEEK));
// 	}
// 
// 	public int getResourceReference() {
// 		return resourceReference;
// 	}
// 
// }


// Path: HSRTimeTable/src/ch/scythe/hsr/api/ui/UiDay.java
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import ch.scythe.hsr.enumeration.Weekday;

/* 
 * Copyright (C) 2011 - 2013 Michi Gysel <michael.gysel@gmail.com>
 *
 * This file is part of the HSR Timetable.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ch.scythe.hsr.api.ui;



public class UiDay implements Serializable {

	private static final long serialVersionUID = 1L;
	private final Weekday weekday;
	private List<UiLesson> lessons = new ArrayList<UiLesson>();

	public UiDay(Weekday weekday) {