Use name for method more consistent with field name

FEA: ItEr68OTS05IntroducionLimiteSobreasignacionCalendarios
This commit is contained in:
Óscar González Fernández 2011-01-17 18:57:09 +01:00
parent 100a863969
commit 3bc59e3b41
4 changed files with 5 additions and 5 deletions

View file

@ -60,7 +60,7 @@ public class CalendarException extends IntegrationEntity {
private static Capacity from(EffortDuration duration,
CalendarExceptionType type) {
return type.getCapacity().withNormalDuration(duration);
return type.getCapacity().withStandardEffort(duration);
}
private static EffortDuration fromHours(Integer hours) {
@ -74,7 +74,7 @@ public class CalendarException extends IntegrationEntity {
}
if (hours != null) {
this.capacity.withNormalDuration(fromHours(hours));
this.capacity.withStandardEffort(fromHours(hours));
}
if (type != null) {

View file

@ -157,7 +157,7 @@ public class CalendarExceptionType extends IntegrationEntity {
}
public void setDuration(EffortDuration duration) {
this.capacity = this.capacity.withNormalDuration(duration);
this.capacity = this.capacity.withStandardEffort(duration);
}
@Override

View file

@ -78,7 +78,7 @@ public class Capacity {
return new Capacity(standardEffort, extraEffort);
}
public Capacity withNormalDuration(EffortDuration standardEffort) {
public Capacity withStandardEffort(EffortDuration standardEffort) {
return new Capacity(standardEffort, allowedExtraEffort);
}

View file

@ -63,7 +63,7 @@ public class CapacityPicker {
@Override
public void set(EffortDuration value) {
updateCapacity(currentCapacity.withNormalDuration(value));
updateCapacity(currentCapacity.withStandardEffort(value));
}
});
extraEffortPicker.bind(new Getter<EffortDuration>() {