ItEr25S07CUAsignacionGrupoRecursosAPlanificacionItEr24S08: Extracting interface from BaseCalendar having a method for retrieving the hours for a date

This commit is contained in:
Óscar González Fernández 2009-09-09 17:53:37 +02:00 committed by Javier Moran Rua
parent 515d3c8536
commit ee98fb3f2e
2 changed files with 10 additions and 1 deletions

View file

@ -23,7 +23,7 @@ import org.navalplanner.business.common.BaseEntity;
*
* @author Manuel Rego Casasnovas <mrego@igalia.com>
*/
public class BaseCalendar extends BaseEntity {
public class BaseCalendar extends BaseEntity implements IWorkHours {
private static final Integer DEFAULT_VALUE = 0;

View file

@ -0,0 +1,9 @@
package org.navalplanner.business.calendars.entities;
import org.joda.time.LocalDate;
public interface IWorkHours {
public Integer getWorkableHours(LocalDate date);
}