Interface SingleLevelClustering<T,C extends Cluster<T>>

Type Parameters:
C - Type of clusters represented
T - Type of items contained by the clusters
All Known Subinterfaces:
IDBasedSingleLevelClustering

@Beta @PublicApi public interface SingleLevelClustering<T,C extends Cluster<T>>
A grouping of structures into disjunct groups.

Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.

  • Method Summary

    Modifier and Type
    Method
    Description
    clusterOf(T item)
    Identify the cluster containing the given item.
    Represented cluster.
  • Method Details

    • clusters

      List<C> clusters()
      Represented cluster.
      Returns:
      A list of represented clusters, containing at least 1 element.
    • clusterOf

      Optional<C> clusterOf(T item)
      Identify the cluster containing the given item.
      Parameters:
      item - Item to look up.
      Returns:
      The cluster containing the given element.