@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDiskPartition extends Object implements DiskPartition
DiskPartition
.
Use the builder to create immutable instances:
ImmutableDiskPartition.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableDiskPartition.Builder
Builds instances of type
ImmutableDiskPartition . |
Modifier and Type | Method and Description |
---|---|
static ImmutableDiskPartition.Builder |
builder()
Creates a builder for
ImmutableDiskPartition . |
static ImmutableDiskPartition |
copyOf(DiskPartition instance)
Creates an immutable copy of a
DiskPartition value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDiskPartition that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
lengthBytes , number , offsetBytes , typeUuid , uuid . |
long |
lengthBytes()
Specifies the length of the block in bytes.
|
long |
number()
Specifies a unique number of the partition within the linear disk file.
|
long |
offsetBytes()
Specifies the offset of the block (in bytes) from the beginning of the
containing object such as a physical disk or a virtual disk file.
|
String |
toString()
Prints the immutable value
DiskPartition with attribute values. |
String |
typeUuid()
Specifies the partition type uuid.
|
Optional<String> |
uuid()
Specifies the partition uuid.
|
ImmutableDiskPartition |
withLengthBytes(long value)
Copy the current immutable object by setting a value for the
lengthBytes attribute. |
ImmutableDiskPartition |
withNumber(long value)
Copy the current immutable object by setting a value for the
number attribute. |
ImmutableDiskPartition |
withOffsetBytes(long value)
Copy the current immutable object by setting a value for the
offsetBytes attribute. |
ImmutableDiskPartition |
withTypeUuid(String value)
Copy the current immutable object by setting a value for the
typeUuid attribute. |
ImmutableDiskPartition |
withUuid(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
uuid attribute. |
ImmutableDiskPartition |
withUuid(String value)
Copy the current immutable object by setting a present value for the optional
uuid attribute. |
public long lengthBytes()
lengthBytes
in interface DiskPartition
public long number()
number
in interface DiskPartition
public long offsetBytes()
offsetBytes
in interface DiskPartition
public String typeUuid()
typeUuid
in interface DiskPartition
public Optional<String> uuid()
uuid
in interface DiskPartition
public final ImmutableDiskPartition withLengthBytes(long value)
lengthBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for lengthBytesthis
objectpublic final ImmutableDiskPartition withNumber(long value)
number
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for numberthis
objectpublic final ImmutableDiskPartition withOffsetBytes(long value)
offsetBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for offsetBytesthis
objectpublic final ImmutableDiskPartition withTypeUuid(String value)
typeUuid
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for typeUuidthis
objectpublic final ImmutableDiskPartition withUuid(String value)
uuid
attribute.value
- The value for uuidthis
objectpublic final ImmutableDiskPartition withUuid(Optional<String> optional)
uuid
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for uuidthis
objectpublic boolean equals(@Nullable Object another)
ImmutableDiskPartition
that have equal attribute values.public int hashCode()
lengthBytes
, number
, offsetBytes
, typeUuid
, uuid
.public String toString()
DiskPartition
with attribute values.public static ImmutableDiskPartition copyOf(DiskPartition instance)
DiskPartition
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 ImmutableDiskPartition.Builder builder()
ImmutableDiskPartition
.
ImmutableDiskPartition.builder() .lengthBytes(long) // requiredlengthBytes
.number(long) // requirednumber
.offsetBytes(long) // requiredoffsetBytes
.typeUuid(String) // requiredtypeUuid
.uuid(String) // optionaluuid
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.