jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.clustering.common
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
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.

Author:
Gabor Imre

Method Summary
 Optional<C> clusterOf(T item)
          Identify the cluster containing the given item.
 List<C> clusters()
          Represented cluster.
 

Method Detail

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.

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)