Class Seed.Builder

  • Enclosing class:
    Seed

    public static final class Seed.Builder
    extends Object
    Class used to create new Seed instances using the builder pattern.
    • Method Detail

      • priority

        public Seed.Builder priority​(double priority)
        Sets an explicit priority for the seed. Priorities show the relative importance of multiple seeds. If the seed is not priorities the default of Seed.NO_PRIORITY should be used.
        Parameters:
        priority - the desired priority
        Returns:
        this
      • build

        public Seed build​(Collection<Parameter> parameters)
        Constructs the actual Seed instance from this builder.
        Parameters:
        parameters - the parameters to optionally build a Combination.Builder. If this is not necessary because Builder(Combination.Builder) was not used, null or an arbitrary collection can be passed to this method
        Returns:
        the Seed constructed using the information supplied to this builder