@NotThreadSafe public static final class ImmutableDeviceTreeDetails.Builder extends Object
ImmutableDeviceTreeDetails
.
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.
public final ImmutableDeviceTreeDetails.Builder from(DeviceTreeDetails instance)
DeviceTreeDetails
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ImmutableDeviceTreeDetails.Builder combineMethod(CombineMethod combineMethod)
combineMethod
attribute.combineMethod
- The value for combineMethodthis
builder for use in a chained invocationpublic final ImmutableDeviceTreeDetails.Builder deviceLength(long deviceLength)
deviceLength
attribute.deviceLength
- The value for deviceLengththis
builder for use in a chained invocationpublic final ImmutableDeviceTreeDetails.Builder addDeviceNodes(DeviceNode element)
deviceNodes
list.element
- A deviceNodes elementthis
builder for use in a chained invocationpublic final ImmutableDeviceTreeDetails.Builder addDeviceNodes(DeviceNode... elements)
deviceNodes
list.elements
- An array of deviceNodes elementsthis
builder for use in a chained invocationpublic final ImmutableDeviceTreeDetails.Builder deviceNodes(Iterable<? extends DeviceNode> elements)
deviceNodes
list.elements
- An iterable of deviceNodes elementsthis
builder for use in a chained invocationpublic final ImmutableDeviceTreeDetails.Builder addAllDeviceNodes(Iterable<? extends DeviceNode> elements)
deviceNodes
list.elements
- An iterable of deviceNodes elementsthis
builder for use in a chained invocationpublic final ImmutableDeviceTreeDetails.Builder stripeSize(double stripeSize)
stripeSize
attribute.stripeSize
- The value for stripeSizethis
builder for use in a chained invocationpublic ImmutableDeviceTreeDetails build()
ImmutableDeviceTreeDetails
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.