Skip to content

Commit

Permalink
rename setter in Builder to make it more consistent. old setter remai…
Browse files Browse the repository at this point in the history
…n as deprecated
  • Loading branch information
kt86 committed Dec 20, 2024
1 parent cbe5a12 commit b8c6da6
Showing 1 changed file with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,35 @@ public Builder setServiceDuration(double serviceDuration){
return this;
}

/**
* Sets the demand (size; capacity needed) of the service.
* When not set, it is by default 0.
* <p>
* IMO we can put this into the Builder directly instead of a separate method? kturner dec'24
*
* @param demand the demand (size; capacity needed) of the service
* @return the builder
*/
public Builder setDemand(int demand) {
this.demand = demand;
return this;
}


/**
* Sets the demand (size; capacity needed) of the service.
* When not set, it is by default 0.
* <p>
* IMO we can put this into the Builder directly instead of a separate method? kturner dec'24
*
* @deprecated please use {@link #setDemand(int)} instead
*
* @param value the demand (size; capacity needed) of the service
* @return the builder
*/
@Deprecated(since = "dec'24")
public Builder setCapacityDemand(int value) {
this.demand = value;
return this;
return setDemand(value);
}

}
Expand Down

0 comments on commit b8c6da6

Please sign in to comment.