ItEr25S07CUAsignacionGrupoRecursosAPlanificacionItEr24S08: Extracting interface from BaseCalendar having a method for retrieving the hours for a date
This commit is contained in:
parent
515d3c8536
commit
ee98fb3f2e
2 changed files with 10 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
package org.navalplanner.business.calendars.entities;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
public interface IWorkHours {
|
||||
|
||||
public Integer getWorkableHours(LocalDate date);
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue