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.

        id - the identifier
        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
        type - the type providing meaning to the value
        value - the value
        this, for chaining
      • build

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