Skip to content

Commit

Permalink
use boxed types directly instead of separate clearXxx() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
zinal committed Jan 9, 2024
1 parent 6d9c8e9 commit c7441d2
Showing 1 changed file with 5 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,53 +39,28 @@ public Long getMaxPartitionsCount() {
return maxPartitionsCount;
}

public PartitioningSettings setPartitioningBySize(boolean partitioningBySize) {
public PartitioningSettings setPartitioningBySize(Boolean partitioningBySize) {
this.partitioningBySize = partitioningBySize;
return this;
}

public PartitioningSettings setPartitioningByLoad(boolean partitioningByLoad) {
public PartitioningSettings setPartitioningByLoad(Boolean partitioningByLoad) {
this.partitioningByLoad = partitioningByLoad;
return this;
}

public PartitioningSettings setPartitionSize(long partitionSizeMb) {
public PartitioningSettings setPartitionSize(Long partitionSizeMb) {
this.partitionSizeMb = partitionSizeMb;
return this;
}

public PartitioningSettings setMinPartitionsCount(long partitionsCount) {
public PartitioningSettings setMinPartitionsCount(Long partitionsCount) {
this.minPartitionsCount = partitionsCount;
return this;
}

public PartitioningSettings setMaxPartitionsCount(long partitionsCount) {
public PartitioningSettings setMaxPartitionsCount(Long partitionsCount) {
this.maxPartitionsCount = partitionsCount;
return this;
}

public PartitioningSettings clearPartitioningBySize() {
this.partitioningBySize = null;
return this;
}

public PartitioningSettings clearPartitioningByLoad() {
this.partitioningByLoad = null;
return this;
}

public PartitioningSettings clearPartitionSize() {
this.partitionSizeMb = null;
return this;
}

public PartitioningSettings clearMinPartitionsCount() {
this.minPartitionsCount = null;
return this;
}

public PartitioningSettings clearMaxPartitionsCount() {
this.maxPartitionsCount = null;
return this;
}
}

0 comments on commit c7441d2

Please sign in to comment.