Package eu.mihosoft.devcom.impl
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 java.lang.Object implements PortInfo.Builder
-
-
Constructor Summary
Constructors Constructor Description BuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortInfo.BuilderappendCollections(boolean value)PortInfo.BuilderapplyFrom(PortInfo o)PortInfobuild()Builds a new 'PortInfo' instance.PortInfo.BuilderwithDescription(java.lang.String description)Sets the 'description' property of this builder.PortInfo.BuilderwithExtendedName(java.lang.String extendedName)Sets the 'extendedName' property of this builder.PortInfo.BuilderwithLocation(java.lang.String location)Sets the 'location' property of this builder.PortInfo.BuilderwithName(java.lang.String name)Sets the 'name' property of this builder.
-
-
-
Method Detail
-
withDescription
public PortInfo.Builder withDescription(java.lang.String description)
Description copied from interface:PortInfo.BuilderSets the 'description' property of this builder.- Specified by:
withDescriptionin interfacePortInfo.Builder- Parameters:
description- value to setThe 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.BuilderSets the 'extendedName' property of this builder.- Specified by:
withExtendedNamein interfacePortInfo.Builder- Parameters:
extendedName- value to setThe 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.BuilderSets the 'location' property of this builder.- Specified by:
withLocationin interfacePortInfo.Builder- Parameters:
location- value to setThe 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.BuilderSets the 'name' property of this builder.- Specified by:
withNamein interfacePortInfo.Builder- Parameters:
name- value to setThe 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.BuilderBuilds a new 'PortInfo' instance.- Specified by:
buildin interfaceeu.mihosoft.vmf.runtime.core.Builder- Specified by:
buildin interfacePortInfo.Builder- Returns:
- a new '
PortInfo' instance
-
applyFrom
public PortInfo.Builder applyFrom(PortInfo o)
-
-