@NotThreadSafe public static final class ImmutableDeviceNode.Builder extends Object
ImmutableDeviceNode.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableDeviceNode |
build()
Builds a new
ImmutableDeviceNode. |
ImmutableDeviceNode.Builder |
from(DeviceNode instance)
Fill a builder with attribute values from the provided
DeviceNode instance. |
ImmutableDeviceNode.Builder |
intermediateNode(DeviceTreeDetails intermediateNode)
Initializes the value for the
intermediateNode attribute. |
ImmutableDeviceNode.Builder |
leafNode(FilePartitionBlock leafNode)
Initializes the value for the
leafNode attribute. |
public final ImmutableDeviceNode.Builder from(DeviceNode instance)
DeviceNode instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableDeviceNode.Builder intermediateNode(DeviceTreeDetails intermediateNode)
intermediateNode attribute.intermediateNode - The value for intermediateNodethis builder for use in a chained invocationpublic final ImmutableDeviceNode.Builder leafNode(FilePartitionBlock leafNode)
leafNode attribute.leafNode - The value for leafNodethis builder for use in a chained invocationpublic ImmutableDeviceNode build()
ImmutableDeviceNode.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.