Class PortInfoImpl.BuilderImpl

java.lang.Object
eu.mihosoft.devcom.impl.PortInfoImpl.BuilderImpl
All Implemented Interfaces:
PortInfo.Builder, eu.mihosoft.vmf.runtime.core.Builder
Enclosing class:
PortInfoImpl

public static class PortInfoImpl.BuilderImpl extends Object implements PortInfo.Builder
  • Constructor Details

    • BuilderImpl

      public BuilderImpl()
  • Method Details

    • withDescription

      public PortInfo.Builder withDescription(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(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(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(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)
    • build

      public PortInfo build()
      Description copied from interface: PortInfo.Builder
      Builds a new 'PortInfo' instance.
      Specified by:
      build in interface eu.mihosoft.vmf.runtime.core.Builder
      Specified by:
      build in interface PortInfo.Builder
      Returns:
      a new 'PortInfo' instance
    • applyFrom

      public PortInfo.Builder applyFrom(PortInfo o)