org.springframework.batch.classify
Interface Classifier<C,T>

All Known Implementing Classes:
BackToBackPatternClassifier, BinaryExceptionClassifier, ClassifierAdapter, ClassifierSupport, PatternMatchingClassifier, SubclassClassifier

public interface Classifier<C,T>

Interface for a classifier. At its simplest a Classifier is just a map from objects of one type to objects of another type.

Author:
Dave Syer

Method Summary
 T classify(C classifiable)
          Classify the given object and return an object of a different type, possibly an enumerated type.
 

Method Detail

classify

T classify(C classifiable)
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.


Copyright © 2013 SpringSource. All Rights Reserved.