Package org.springframework.classify
Interface Classifier<C,T>
- Type Parameters:
C
- the type of the thing to classifyT
- the output of the classifier
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BackToBackPatternClassifier
,BinaryExceptionClassifier
,ClassifierAdapter
,ClassifierSupport
,PatternMatchingClassifier
,SubclassClassifier
Interface for a classifier. At its simplest a
Classifier
is just a map from
objects of one type to objects of another type.
Note that implementations can only be serializable if the parameter types are
themselves serializable.- Author:
- Dave Syer
-
Method Summary
-
Method Details
-
classify
Classify the given object and return an object of a different type, possibly an enumerated type.- Parameters:
classifiable
- the input object. Can be null.- Returns:
- an object. Can be null, but implementations should declare if this is the case.
-