We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1674799 commit 4cf57edCopy full SHA for 4cf57ed
eternalcode-commons-shared/src/main/java/com/eternalcode/commons/shared/time/TemporalAmountParser.java
@@ -45,8 +45,9 @@ public abstract class TemporalAmountParser<T extends TemporalAmount> {
45
46
private Set<ChronoUnit> roundedUnits = new HashSet<>();
47
48
- public void roundOff(ChronoUnit unit) {
49
- roundedUnits.add(unit);
+ public TemporalAmountParser<T> roundOff(ChronoUnit unit) {
+ this.roundedUnits.add(unit);
50
+ return this;
51
}
52
53
static {
0 commit comments