Class Clusters.Cluster

  • Enclosing class:
    Clusters

    public static class Clusters.Cluster
    extends Object
    Define the beginning and ending indices (inclusively) of a cluster.
    • Constructor Detail

      • Cluster

        public Cluster​(int beginIndex,
                       int endIndex)
        Create a cluster with the beginning and ending indices of the cluster.
        Parameters:
        beginIndex - the beginning index (inclusive)
        endIndex - the ending index (inclusive)
    • Method Detail

      • getBeginIndex

        public int getBeginIndex()
        Get the index of the first element of this cluster.
        Returns:
        the beginning index of the cluster
      • getEndIndex

        public int getEndIndex()
        Get the index of the last element of this cluster.
        Returns:
        the ending index of the cluster