Class PortInfoImpl.BuilderImpl

    • Constructor Detail

      • BuilderImpl

        public BuilderImpl()
    • Method Detail

      • withDescription

        public PortInfo.Builder withDescription​(java.lang.String description)
        Description copied from interface: PortInfo.Builder
        Sets the 'description' property of this builder.
        Specified by:
        withDescription in interface PortInfo.Builder
        Parameters:
        description - value to set

        The port description. Some devices add the serial number (e.g. FTDI chips).

        Returns:
        this builder
        See Also:
        eu.mihosoft.devcom.PortInfo#setDescription(java.lang.String)
      • withExtendedName

        public PortInfo.Builder withExtendedName​(java.lang.String extendedName)
        Description copied from interface: PortInfo.Builder
        Sets the 'extendedName' property of this builder.
        Specified by:
        withExtendedName in interface PortInfo.Builder
        Parameters:
        extendedName - value to set

        The extended port name, e.g., 'COM3 - Arduino UNO'

        Returns:
        this builder
        See Also:
        eu.mihosoft.devcom.PortInfo#setExtendedName(java.lang.String)
      • withLocation

        public PortInfo.Builder withLocation​(java.lang.String location)
        Description copied from interface: PortInfo.Builder
        Sets the 'location' property of this builder.
        Specified by:
        withLocation in interface PortInfo.Builder
        Parameters:
        location - value to set

        The port location.

        Returns:
        this builder
        See Also:
        eu.mihosoft.devcom.PortInfo#setLocation(java.lang.String)
      • withName

        public PortInfo.Builder withName​(java.lang.String name)
        Description copied from interface: PortInfo.Builder
        Sets the 'name' property of this builder.
        Specified by:
        withName in interface PortInfo.Builder
        Parameters:
        name - value to set

        The port name used to identify the port, e.g. 'COM3'.

        Returns:
        this builder
        See Also:
        eu.mihosoft.devcom.PortInfo#setName(java.lang.String)
      • appendCollections

        public PortInfo.Builder appendCollections​(boolean value)