public class ValueRangeBucket extends PredefinedBucket
| Constructor and Description |
|---|
ValueRangeBucket(java.lang.String name,
java.lang.Comparable from,
boolean fromIncluded,
java.lang.Comparable to,
boolean toIncluded,
Predicate predicate)
Creates an interval matching bucket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptValue(Value value)
Accepts the
value and increments the counter of this bucket
if the value matches this buckets definition. |
java.lang.Comparable |
getFrom() |
java.lang.Comparable |
getTo() |
getCount, getPredicate, getValue, incrementpublic ValueRangeBucket(java.lang.String name,
java.lang.Comparable from,
boolean fromIncluded,
java.lang.Comparable to,
boolean toIncluded,
Predicate predicate)
name - name of this bucket (for display)from - lower end of intervalfromIncluded - if true, will include the from value in the interval, ie. use >=to - upper end of intervaltoIncluded - if true, will include the to value in the interval, ie. use <=predicate - the predicate representing this bucketpublic java.lang.Comparable getFrom()
null if none is set.public java.lang.Comparable getTo()
null if none is set.public void acceptValue(Value value) throws RepositoryException
value and increments the counter of this bucket
if the value matches this buckets definition.acceptValue in class PredefinedBucketvalue - the value to accept.RepositoryException - if an error occurs while reading from the
repository.Copyright © 2010 - 2023 Adobe. All Rights Reserved