public class BucketInfo extends Object implements Serializable, Cloneable
A container for the calculated facet values and counts.
| Constructor and Description |
|---|
BucketInfo() |
| Modifier and Type | Method and Description |
|---|---|
BucketInfo |
clone() |
boolean |
equals(Object obj) |
List<Bucket> |
getBuckets()
A list of the calculated facet values and counts.
|
int |
hashCode() |
void |
setBuckets(Collection<Bucket> buckets)
A list of the calculated facet values and counts.
|
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(Collection<Bucket> buckets)
A list of the calculated facet values and counts.
|
public List<Bucket> getBuckets()
A list of the calculated facet values and counts.
public void setBuckets(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(Collection<Bucket> buckets)
A list of the calculated facet values and counts.
buckets - A list of the calculated facet values and counts.public String toString()
toString in class ObjectObject.toString()public BucketInfo clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.