@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFilePartitionBlock extends Object implements FilePartitionBlock
FilePartitionBlock.
Use the builder to create immutable instances:
ImmutableFilePartitionBlock.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFilePartitionBlock.Builder
Builds instances of type
ImmutableFilePartitionBlock. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableFilePartitionBlock.Builder |
builder()
Creates a builder for
ImmutableFilePartitionBlock. |
static ImmutableFilePartitionBlock |
copyOf(FilePartitionBlock instance)
Creates an immutable copy of a
FilePartitionBlock value. |
String |
diskFileName()
Specifies the disk file name where the logical partition is.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFilePartitionBlock that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
diskFileName, lengthBytes, number, offsetBytes. |
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
FilePartitionBlock with attribute values. |
ImmutableFilePartitionBlock |
withDiskFileName(String value)
Copy the current immutable object by setting a value for the
diskFileName attribute. |
ImmutableFilePartitionBlock |
withLengthBytes(long value)
Copy the current immutable object by setting a value for the
lengthBytes attribute. |
ImmutableFilePartitionBlock |
withNumber(long value)
Copy the current immutable object by setting a value for the
number attribute. |
ImmutableFilePartitionBlock |
withOffsetBytes(long value)
Copy the current immutable object by setting a value for the
offsetBytes attribute. |
public String diskFileName()
diskFileName in interface FilePartitionBlockpublic long lengthBytes()
lengthBytes in interface FilePartitionBlockpublic long number()
number in interface FilePartitionBlockpublic long offsetBytes()
offsetBytes in interface FilePartitionBlockpublic final ImmutableFilePartitionBlock withDiskFileName(String value)
diskFileName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for diskFileNamethis objectpublic final ImmutableFilePartitionBlock 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 ImmutableFilePartitionBlock 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 ImmutableFilePartitionBlock 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 boolean equals(@Nullable Object another)
ImmutableFilePartitionBlock that have equal attribute values.public int hashCode()
diskFileName, lengthBytes, number, offsetBytes.public String toString()
FilePartitionBlock with attribute values.public static ImmutableFilePartitionBlock copyOf(FilePartitionBlock instance)
FilePartitionBlock 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 ImmutableFilePartitionBlock.Builder builder()
ImmutableFilePartitionBlock.
ImmutableFilePartitionBlock.builder()
.diskFileName(String) // required diskFileName
.lengthBytes(long) // required lengthBytes
.number(long) // required number
.offsetBytes(long) // required offsetBytes
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.