public class BucketInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A container for the calculated facet values and counts.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Bucket> |
buckets
A list of the calculated facet values and counts.
|
Constructor and Description |
---|
BucketInfo() |
Modifier and Type | Method and Description |
---|---|
BucketInfo |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Bucket> |
getBuckets()
A list of the calculated facet values and counts.
|
int |
hashCode() |
void |
setBuckets(java.util.Collection<Bucket> buckets)
A list of the calculated facet values and counts.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BucketInfo |
withBuckets(Bucket... buckets)
A list of the calculated facet values and counts.
|
BucketInfo |
withBuckets(java.util.Collection<Bucket> buckets)
A list of the calculated facet values and counts.
|
private SdkInternalList<Bucket> buckets
A list of the calculated facet values and counts.
public java.util.List<Bucket> getBuckets()
A list of the calculated facet values and counts.
public void setBuckets(java.util.Collection<Bucket> buckets)
A list of the calculated facet values and counts.
buckets
- A list of the calculated facet values and counts.public BucketInfo withBuckets(Bucket... buckets)
A list of the calculated facet values and counts.
NOTE: This method appends the values to the existing list (if
any). Use setBuckets(java.util.Collection)
or
withBuckets(java.util.Collection)
if you want to override the
existing values.
buckets
- A list of the calculated facet values and counts.public BucketInfo withBuckets(java.util.Collection<Bucket> buckets)
A list of the calculated facet values and counts.
buckets
- A list of the calculated facet values and counts.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public BucketInfo clone()
clone
in class java.lang.Object