Use name for method more consistent with field name
FEA: ItEr68OTS05IntroducionLimiteSobreasignacionCalendarios
This commit is contained in:
parent
100a863969
commit
3bc59e3b41
4 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue