Class PositionInfoBuilder


  • public final class PositionInfoBuilder
    extends java.lang.Object
    Builder to create PositionInfo.

    This builder allows a PositionInfo to be created.

    • Method Detail

      • id

        public PositionInfoBuilder id​(StandardId id)
        Sets the primary identifier for the position, optional.

        The identifier is used to identify the position.

        Parameters:
        id - the identifier
        Returns:
        this, for chaining
      • addAttribute

        public <T> PositionInfoBuilder addAttribute​(AttributeType<T> type,
                                                    T value)
        Adds a position attribute to the map of attributes.

        The attribute is added using Map.put(type, value) semantics.

        Type Parameters:
        T - the type of the value
        Parameters:
        type - the type providing meaning to the value
        value - the value
        Returns:
        this, for chaining
      • build

        public PositionInfo build()
        Builds the position information.
        Returns:
        the position information