Skip to content

Commit

Permalink
Merge branch 'master' into groupsCustomerStats
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuehnel authored Mar 4, 2024
2 parents 11a2c8f + a4b2eca commit c624a8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public int size() {
return entryList.size();
}

public double getTotalWeight() {
return totalWeight;
}

private record Entry<E>(E e, double cumulativeWeight) implements Comparable<Entry<E>> {
public int compareTo(Entry<E> o) {
double diff = this.cumulativeWeight - o.cumulativeWeight;
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,13 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.10.0</version>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.10.0</version>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit c624a8d

Please sign in to comment.