Package net.solarnetwork.domain
Class BasicDeviceInfo.Builder
java.lang.Object
net.solarnetwork.domain.BasicDeviceInfo.Builder
- Enclosing class:
- BasicDeviceInfo
Builder to build
BasicDeviceInfo.-
Method Summary
Modifier and TypeMethodDescriptionbuild()booleanisEmpty()Test if all fields are null or empty.withDeviceAddress(String deviceAddress) withManufactureDate(LocalDate manufactureDate) withManufacturer(String manufacturer) withModelName(String modelName) withSerialNumber(String serialNumber) withVersion(String version)
-
Method Details
-
withName
-
withManufacturer
-
withModelName
-
withVersion
-
withSerialNumber
-
withManufactureDate
-
withDeviceAddress
-
build
-
isEmpty
public boolean isEmpty()Test if all fields are null or empty.- Returns:
- true if all fields are null or empty
-