@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDeviceNode extends Object implements DeviceNode
DeviceNode
.
Use the builder to create immutable instances:
ImmutableDeviceNode.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableDeviceNode.Builder
Builds instances of type
ImmutableDeviceNode . |
Modifier and Type | Method and Description |
---|---|
static ImmutableDeviceNode.Builder |
builder()
Creates a builder for
ImmutableDeviceNode . |
static ImmutableDeviceNode |
copyOf(DeviceNode instance)
Creates an immutable copy of a
DeviceNode value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDeviceNode that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
intermediateNode , leafNode . |
DeviceTreeDetails |
intermediateNode()
Specifies a logical volume stored as a tree where the leaves are the blocks
of partitions and intermediate nodes are assembled by combining nodes using
one of the following modes: linear layout, striped, mirrored, RAID etc.
|
FilePartitionBlock |
leafNode()
Defines a leaf node of a device tree.
|
String |
toString()
Prints the immutable value
DeviceNode with attribute values. |
ImmutableDeviceNode |
withIntermediateNode(DeviceTreeDetails value)
Copy the current immutable object by setting a value for the
intermediateNode attribute. |
ImmutableDeviceNode |
withLeafNode(FilePartitionBlock value)
Copy the current immutable object by setting a value for the
leafNode attribute. |
public DeviceTreeDetails intermediateNode()
intermediateNode
in interface DeviceNode
public FilePartitionBlock leafNode()
leafNode
in interface DeviceNode
public final ImmutableDeviceNode withIntermediateNode(DeviceTreeDetails value)
intermediateNode
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for intermediateNodethis
objectpublic final ImmutableDeviceNode withLeafNode(FilePartitionBlock value)
leafNode
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for leafNodethis
objectpublic boolean equals(@Nullable Object another)
ImmutableDeviceNode
that have equal attribute values.public int hashCode()
intermediateNode
, leafNode
.public String toString()
DeviceNode
with attribute values.public static ImmutableDeviceNode copyOf(DeviceNode instance)
DeviceNode
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableDeviceNode.Builder builder()
ImmutableDeviceNode
.
ImmutableDeviceNode.builder() .intermediateNode(com.iland.cohesity.iaas.backups.common.model.DeviceTreeDetails) // requiredintermediateNode
.leafNode(com.iland.cohesity.iaas.backups.common.model.FilePartitionBlock) // requiredleafNode
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.