public abstract class Refinement<T extends Refinement<T>>
extends java.lang.Object
Abstract Refinement class holding common methods for RefinementRange and RefinementValue.
| Modifier and Type | Class and Description |
|---|---|
static class |
Refinement.Type |
| Constructor and Description |
|---|
Refinement() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCount() |
java.lang.Boolean |
getExclude() |
java.lang.String |
getId() |
abstract Refinement.Type |
getType()
Types are either `Range` or `Value`
They represent the objects RefinementRange and RefinementValue
|
boolean |
isRange() |
T |
setCount(int count) |
T |
setExclude(java.lang.Boolean exclude) |
T |
setId(java.lang.String id) |
abstract java.lang.String |
toTildeString() |
public java.lang.String getId()
public T setId(java.lang.String id)
id - Set the IDpublic int getCount()
public T setCount(int count)
count - Set the number of matches if this refinement is selectedpublic boolean isRange()
public abstract Refinement.Type getType()
Types are either `Range` or `Value`
They represent the objects RefinementRange and RefinementValue
public java.lang.Boolean getExclude()
public T setExclude(java.lang.Boolean exclude)
exclude - Set to true to get results that exclude this refinement, false to include this refinement.public abstract java.lang.String toTildeString()
Copyright © 2013–2016 GroupBy Inc.. All rights reserved.