Interface Classifier<C,T>

Type Parameters:
C - the type of the thing to classify
T - the output of the classifier
All Superinterfaces:
Serializable
All Known Implementing Classes:
BackToBackPatternClassifier, BinaryExceptionClassifier, ClassifierAdapter, ClassifierSupport, PatternMatchingClassifier, SubclassClassifier

public interface Classifier<C,T> extends Serializable
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

    Modifier and Type
    Method
    Description
    classify(C classifiable)
    Classify the given object and return an object of a different type, possibly an enumerated type.
  • Method Details

    • 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.