Package org.springframework.classify
Class ClassifierSupport<C,T>
java.lang.Object
org.springframework.classify.ClassifierSupport<C,T>
- Type Parameters:
C
- the type of the thing to classifyT
- the output of the classifier
- All Implemented Interfaces:
Serializable
,Classifier<C,
T>
Base class for
Classifier
implementations. Provides default behaviour and some
convenience members, like constants.- Author:
- Dave Syer
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ClassifierSupport
- Parameters:
defaultValue
- the default value
-
-
Method Details
-
classify
Always returns the default value. This is the main extension point for subclasses, so it must be able to classify null.- Specified by:
classify
in interfaceClassifier<C,
T> - Parameters:
throwable
- the input object. Can be null.- Returns:
- an object. Can be null, but implementations should declare if this is the case.
- See Also:
-