Class Cluster.Builder

  • Enclosing class:
    Cluster

    public static class Cluster.Builder
    extends Object
    Builder for Cluster instances.
    • Method Detail

      • numArray

        public Cluster.Builder numArray​(double[] numArray)
        Returns a builder that builds Cluster instances with the provided cluster seeds and other parameters set to the previously provided values.
        Parameters:
        numArray - the cluster seeds
        Returns:
        Cluster.Builder
      • id

        public Cluster.Builder id​(String id)
        Returns a builder that builds Cluster instances with the provided cluster id and other parameters set to the previously provided values.
        Parameters:
        name - the cluster id
        Returns:
        Cluster.Builder
      • name

        public Cluster.Builder name​(String name)
        Returns a builder that builds Cluster instances with the provided cluster name and other parameters set to the previously provided values.
        Parameters:
        name - the cluster name
        Returns:
        Cluster.Builder
      • size

        public Cluster.Builder size​(long size)
        Returns a builder that builds Cluster instances with the provided cluster size and other parameters set to the previously provided values.
        Parameters:
        size - the cluster size
        Returns:
        Cluster.Builder
      • build

        public Cluster build()
        Builds a Cluster instance based on the previously set values.
        Returns:
        Cluster