Package org.plumelib.util
Interface Partitioner<ELEMENT extends @Nullable Object,CLASS extends @Nullable Object>
- Type Parameters:
ELEMENT
- the type of elements to be classifiedCLASS
- the type of equivalence classes (classification buckets)
A Partitioner accepts Objects and assigns them to an equivalence class.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionassignToBucket
(ELEMENT obj) Returns a key representing the bucket containing obj.
-
Method Details
-
assignToBucket
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
-