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
public class SimpleBucket extends java.lang.Object implements Bucket
SimpleBucket
is a bucket representing a single value.
-
-
Constructor Summary
Constructors Constructor Description SimpleBucket(Predicate predicate, java.lang.String value)
Creates a new bucket with the givenvalue
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
Predicate
getPredicate()
java.lang.String
getValue()
void
increment()
Increments the count of this bucket.
-
-
-
Constructor Detail
-
SimpleBucket
public SimpleBucket(Predicate predicate, java.lang.String value)
Creates a new bucket with the givenvalue
.- Parameters:
value
- the value of this bucket.
-
-
Method Detail
-
increment
public void increment()
Increments the count of this bucket.
-
getCount
public long getCount()
-
getValue
public java.lang.String getValue()
-
getPredicate
public Predicate getPredicate()
- Specified by:
getPredicate
in interfaceBucket
- Returns:
- a predicate representing this bucket that can be used for a new search
-
-