Interface Partitioner<ELEMENT extends @Nullable Object,CLASS extends @Nullable Object>

Type Parameters:
ELEMENT - the type of elements to be classified
CLASS - the type of equivalence classes (classification buckets)

public interface Partitioner<ELEMENT extends @Nullable Object,CLASS extends @Nullable Object>
A Partitioner accepts Objects and assigns them to an equivalence class.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a key representing the bucket containing obj.
  • Method Details

    • assignToBucket

      CLASS assignToBucket(ELEMENT obj)
      Returns a key representing the bucket containing obj.
      Parameters:
      obj - the Object to be assigned to a bucket
      Returns:
      a key representing the bucket containing obj