Class Value.Builder

  • Enclosing class:
    Value

    public static final class Value.Builder
    extends Object
    Helper class which temporary stores data and weight until an id can be assigned to the value.
    • Method Detail

      • build

        public Value build​(int id)
        Creates the value instance with the missing given id.
        Parameters:
        id - an id which should be unique inside the values parameter
        Returns:
        the value with the given id and the data and weight stored in the builder