src/main/java/pt/it/av/tnav/ml/clustering/cluster/ClusterUtils.java
public static <D extends Distance<D>> boolean emptyClusters(List<Cluster<D>> clusters) {
    boolean rv = false;

    for (Cluster<D> c : clusters) {
      if (c.isEmpty()) {
        rv = true;
        break;
      }
    }

    return rv;
  }
/**
   * Returns true if the list of clusters contains empty clusters, otherwise false.
   *
   * @param clusters list of clusters.
   * @param <D> Any Class that implements {@link Distance} interface.
   * @return true if the list of clusters contains empty clusters, otherwise false.
   */
Returns true if the list of clusters contains empty clusters, otherwise false.
@param clusters list of clusters.
@param  Any Class that implements  Distance interface.
@return true if the list of clusters contains empty clusters, otherwise false.
Returns true if the list of clusters contains empty clusters otherwise false . @param clusters list of clusters . @param Any Class that implements Distance interface . @return true if the list of clusters contains empty clusters otherwise false .
public static <D extends Distance<D>> boolean emptyClusters(List<Cluster<D>> clusters) {
    boolean rv = false;
    for (Cluster<D> c : clusters) {
      if (c.isEmpty()) {
        rv = true;
        break;
      }
    }
    return rv;
  }
public static < D extends Distance < D > > boolean emptyClusters ( List < Cluster < D > > clusters ) { boolean rv = false ; for ( Cluster < D > c : clusters ) { if ( c . isEmpty ( ) ) { rv = true ; break ; } } return rv ; }
Returns true if the list of clusters contains empty clusters, otherwise false.
Returns true if the list of clusters contains empty clusters otherwise false .