Package com.day.cq.search.facets.buckets
Class SimpleBucket
java.lang.Object
com.day.cq.search.facets.buckets.SimpleBucket
- All Implemented Interfaces:
Bucket
- Direct Known Subclasses:
PredefinedBucket
SimpleBucket is a bucket representing a single value.-
Constructor Summary
ConstructorsConstructorDescriptionSimpleBucket(Predicate predicate, String value) Creates a new bucket with the givenvalue. -
Method Summary
-
Constructor Details
-
SimpleBucket
Creates a new bucket with the givenvalue.- Parameters:
value- the value of this bucket.
-
-
Method Details
-
increment
public void increment()Increments the count of this bucket. -
getCount
public long getCount() -
getValue
-
getPredicate
- Specified by:
getPredicatein interfaceBucket- Returns:
- a predicate representing this bucket that can be used for a new search
-