@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDeviceTreeDetails extends Object implements DeviceTreeDetails
DeviceTreeDetails
.
Use the builder to create immutable instances:
ImmutableDeviceTreeDetails.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableDeviceTreeDetails.Builder
Builds instances of type
ImmutableDeviceTreeDetails . |
Modifier and Type | Method and Description |
---|---|
static ImmutableDeviceTreeDetails.Builder |
builder()
Creates a builder for
ImmutableDeviceTreeDetails . |
CombineMethod |
combineMethod()
Specifies how to combine the children of this node.
|
static ImmutableDeviceTreeDetails |
copyOf(DeviceTreeDetails instance)
Creates an immutable copy of a
DeviceTreeDetails value. |
long |
deviceLength()
Specifies the length of this device.
|
com.google.common.collect.ImmutableList<DeviceNode> |
deviceNodes()
Specifies the children of this node in the device tree.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDeviceTreeDetails that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
combineMethod , deviceLength , deviceNodes , stripeSize . |
double |
stripeSize()
Specifies the size of the striped data if the data is striped.
|
String |
toString()
Prints the immutable value
DeviceTreeDetails with attribute values. |
ImmutableDeviceTreeDetails |
withCombineMethod(CombineMethod value)
Copy the current immutable object by setting a value for the
combineMethod attribute. |
ImmutableDeviceTreeDetails |
withDeviceLength(long value)
Copy the current immutable object by setting a value for the
deviceLength attribute. |
ImmutableDeviceTreeDetails |
withDeviceNodes(DeviceNode... elements)
Copy the current immutable object with elements that replace the content of
deviceNodes . |
ImmutableDeviceTreeDetails |
withDeviceNodes(Iterable<? extends DeviceNode> elements)
Copy the current immutable object with elements that replace the content of
deviceNodes . |
ImmutableDeviceTreeDetails |
withStripeSize(double value)
Copy the current immutable object by setting a value for the
stripeSize attribute. |
public CombineMethod combineMethod()
combineMethod
in interface DeviceTreeDetails
public long deviceLength()
deviceLength
in interface DeviceTreeDetails
public com.google.common.collect.ImmutableList<DeviceNode> deviceNodes()
deviceNodes
in interface DeviceTreeDetails
public double stripeSize()
stripeSize
in interface DeviceTreeDetails
public final ImmutableDeviceTreeDetails withCombineMethod(CombineMethod value)
combineMethod
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for combineMethodthis
objectpublic final ImmutableDeviceTreeDetails withDeviceLength(long value)
deviceLength
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for deviceLengththis
objectpublic final ImmutableDeviceTreeDetails withDeviceNodes(DeviceNode... elements)
deviceNodes
.elements
- The elements to setthis
objectpublic final ImmutableDeviceTreeDetails withDeviceNodes(Iterable<? extends DeviceNode> elements)
deviceNodes
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of deviceNodes elements to setthis
objectpublic final ImmutableDeviceTreeDetails withStripeSize(double value)
stripeSize
attribute.
A value strict bits equality used to prevent copying of the same value by returning this
.value
- A new value for stripeSizethis
objectpublic boolean equals(@Nullable Object another)
ImmutableDeviceTreeDetails
that have equal attribute values.public int hashCode()
combineMethod
, deviceLength
, deviceNodes
, stripeSize
.public String toString()
DeviceTreeDetails
with attribute values.public static ImmutableDeviceTreeDetails copyOf(DeviceTreeDetails instance)
DeviceTreeDetails
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 ImmutableDeviceTreeDetails.Builder builder()
ImmutableDeviceTreeDetails
.
ImmutableDeviceTreeDetails.builder() .combineMethod(com.iland.cohesity.iaas.backups.common.enums.CombineMethod) // requiredcombineMethod
.deviceLength(long) // requireddeviceLength
.addDeviceNodes|addAllDeviceNodes(com.iland.cohesity.iaas.backups.common.model.DeviceNode) //deviceNodes
elements .stripeSize(double) // requiredstripeSize
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.