All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.plumelib.util.Partitioner Maven / Gradle / Ivy

There is a newer version: 1.10.0
Show newest version
package org.plumelib.util;

import org.checkerframework.checker.nullness.qual.Nullable;

/**
 * A Partitioner accepts Objects and assigns them to an equivalence class.
 *
 * @param  the type of elements to be classified
 * @param  the type of equivalence classes (classification buckets)
 * @see MultiRandSelector
 */
public interface Partitioner {

  /**
   * Returns a key representing the bucket containing obj.
   *
   * @param obj the Object to be assigned to a bucket
   * @return a key representing the bucket containing obj
   */
  CLASS assignToBucket(ELEMENT obj);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy