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 Detail

      • clusters

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

        com.google.common.base.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.