@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDirectoryListingEntry extends Object implements DirectoryListingEntry
DirectoryListingEntry.
Use the builder to create immutable instances:
ImmutableDirectoryListingEntry.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDirectoryListingEntry.Builder
Builds instances of type
ImmutableDirectoryListingEntry. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDirectoryListingEntry.Builder |
builder()
Creates a builder for
ImmutableDirectoryListingEntry. |
static ImmutableDirectoryListingEntry |
copyOf(DirectoryListingEntry instance)
Creates an immutable copy of a
DirectoryListingEntry value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDirectoryListingEntry that have equal attribute values. |
Optional<FStatInfo> |
fStatInfo()
File stat info.
|
String |
fullPath()
The full path of the entry.
|
int |
hashCode()
Computes a hash code from attributes:
fStatInfo, fullPath, name, type. |
String |
name()
The name of the entry.
|
String |
toString()
Prints the immutable value
DirectoryListingEntry with attribute values. |
DirEntryType |
type()
The type of the entry.
|
ImmutableDirectoryListingEntry |
withFStatInfo(FStatInfo value)
Copy the current immutable object by setting a present value for the optional
fStatInfo attribute. |
ImmutableDirectoryListingEntry |
withFStatInfo(Optional<? extends FStatInfo> optional)
Copy the current immutable object by setting an optional value for the
fStatInfo attribute. |
ImmutableDirectoryListingEntry |
withFullPath(String value)
Copy the current immutable object by setting a value for the
fullPath attribute. |
ImmutableDirectoryListingEntry |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableDirectoryListingEntry |
withType(DirEntryType value)
Copy the current immutable object by setting a value for the
type attribute. |
public Optional<FStatInfo> fStatInfo()
fStatInfo in interface DirectoryListingEntrypublic String fullPath()
fullPath in interface DirectoryListingEntrypublic String name()
name in interface DirectoryListingEntrypublic DirEntryType type()
type in interface DirectoryListingEntrypublic final ImmutableDirectoryListingEntry withFStatInfo(FStatInfo value)
fStatInfo attribute.value - The value for fStatInfothis objectpublic final ImmutableDirectoryListingEntry withFStatInfo(Optional<? extends FStatInfo> optional)
fStatInfo attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for fStatInfothis objectpublic final ImmutableDirectoryListingEntry withFullPath(String value)
fullPath attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for fullPaththis objectpublic final ImmutableDirectoryListingEntry withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableDirectoryListingEntry withType(DirEntryType value)
type attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic boolean equals(@Nullable Object another)
ImmutableDirectoryListingEntry that have equal attribute values.public int hashCode()
fStatInfo, fullPath, name, type.public String toString()
DirectoryListingEntry with attribute values.public static ImmutableDirectoryListingEntry copyOf(DirectoryListingEntry instance)
DirectoryListingEntry 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 ImmutableDirectoryListingEntry.Builder builder()
ImmutableDirectoryListingEntry.
ImmutableDirectoryListingEntry.builder()
.fStatInfo(com.iland.cohesity.iaas.backups.recovery.model.FStatInfo) // optional fStatInfo
.fullPath(String) // required fullPath
.name(String) // required name
.type(com.iland.cohesity.iaas.backups.recovery.enums.DirEntryType) // required type
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.