public class ClassifierSupport<C,T> extends java.lang.Object implements Classifier<C,T>
Classifier implementations. Provides default behaviour
and some convenience members, like constants.| Modifier and Type | Field and Description |
|---|---|
private T |
defaultValue |
| Constructor and Description |
|---|
ClassifierSupport(T defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
T |
classify(C throwable)
Always returns the default value.
|
private final T defaultValue
public ClassifierSupport(T defaultValue)
defaultValue - public T classify(C throwable)
classify in interface Classifier<C,T>throwable - the input object. Can be null.Classifier.classify(Object)