-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
69 additions
and
10 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
algoliasearch-common/src/main/java/com/algolia/search/responses/FacetStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package com.algolia.search.responses; | ||
|
||
import java.io.Serializable; | ||
|
||
public class FacetStats implements Serializable { | ||
|
||
private Float min; | ||
private Float max; | ||
private Float avg; | ||
private Float sum; | ||
|
||
public Float getMin() { | ||
return min; | ||
} | ||
|
||
public FacetStats setMin(Float min) { | ||
this.min = min; | ||
return this; | ||
} | ||
|
||
public Float getMax() { | ||
return max; | ||
} | ||
|
||
public FacetStats setMax(Float max) { | ||
this.max = max; | ||
return this; | ||
} | ||
|
||
public Float getAvg() { | ||
return avg; | ||
} | ||
|
||
public FacetStats setAvg(Float avg) { | ||
this.avg = avg; | ||
return this; | ||
} | ||
|
||
public Float getSum() { | ||
return sum; | ||
} | ||
|
||
public FacetStats setSum(Float sum) { | ||
this.sum = sum; | ||
return this; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "FacetStats{" + "min=" + min + ", max=" + max + ", avg=" + avg + ", sum=" + sum + '}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters