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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappendCollections
(boolean value) build()
Builds a new 'PortInfo
' instance.withDescription
(String description) Sets the 'description' property of this builder.withExtendedName
(String extendedName) Sets the 'extendedName' property of this builder.withLocation
(String location) Sets the 'location' property of this builder.Sets the 'name' property of this builder.
-
Constructor Details
-
BuilderImpl
public BuilderImpl()
-
-
Method Details
-
withDescription
Description copied from interface:PortInfo.Builder
Sets the 'description' property of this builder.- Specified by:
withDescription
in 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
Description copied from interface:PortInfo.Builder
Sets the 'extendedName' property of this builder.- Specified by:
withExtendedName
in 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
Description copied from interface:PortInfo.Builder
Sets the 'location' property of this builder.- Specified by:
withLocation
in interfacePortInfo.Builder
- Parameters:
location
- value to setThe port location.
- Returns:
- this builder
- See Also:
-
eu.mihosoft.devcom.PortInfo#setLocation(java.lang.String)
-
withName
Description copied from interface:PortInfo.Builder
Sets the 'name' property of this builder.- Specified by:
withName
in 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
-
build
Description copied from interface:PortInfo.Builder
Builds a new 'PortInfo
' instance.- Specified by:
build
in interfaceeu.mihosoft.vmf.runtime.core.Builder
- Specified by:
build
in interfacePortInfo.Builder
- Returns:
- a new '
PortInfo
' instance
-
applyFrom
-