@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFilesAndFoldersInfo extends Object implements FilesAndFoldersInfo
FilesAndFoldersInfo.
Use the builder to create immutable instances:
ImmutableFilesAndFoldersInfo.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFilesAndFoldersInfo.Builder
Builds instances of type
ImmutableFilesAndFoldersInfo. |
| Modifier and Type | Method and Description |
|---|---|
String |
absolutePath()
AbsolutePath specifies the absolute path of the specified file or folder.
|
static ImmutableFilesAndFoldersInfo.Builder |
builder()
Creates a builder for
ImmutableFilesAndFoldersInfo. |
static ImmutableFilesAndFoldersInfo |
copyOf(FilesAndFoldersInfo instance)
Creates an immutable copy of a
FilesAndFoldersInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFilesAndFoldersInfo that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
absolutePath, isDirectory. |
boolean |
isDirectory()
IsDirectory specifies if specified object is a directory or not.
|
String |
toString()
Prints the immutable value
FilesAndFoldersInfo with attribute values. |
ImmutableFilesAndFoldersInfo |
withAbsolutePath(String value)
Copy the current immutable object by setting a value for the
absolutePath attribute. |
ImmutableFilesAndFoldersInfo |
withIsDirectory(boolean value)
Copy the current immutable object by setting a value for the
isDirectory attribute. |
public String absolutePath()
absolutePath in interface FilesAndFoldersInfopublic boolean isDirectory()
isDirectory in interface FilesAndFoldersInfopublic final ImmutableFilesAndFoldersInfo withAbsolutePath(String value)
absolutePath attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for absolutePaththis objectpublic final ImmutableFilesAndFoldersInfo withIsDirectory(boolean value)
isDirectory attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isDirectorythis objectpublic boolean equals(@Nullable Object another)
ImmutableFilesAndFoldersInfo that have equal attribute values.public int hashCode()
absolutePath, isDirectory.public String toString()
FilesAndFoldersInfo with attribute values.public static ImmutableFilesAndFoldersInfo copyOf(FilesAndFoldersInfo instance)
FilesAndFoldersInfo 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 ImmutableFilesAndFoldersInfo.Builder builder()
ImmutableFilesAndFoldersInfo.
ImmutableFilesAndFoldersInfo.builder()
.absolutePath(String) // required absolutePath
.isDirectory(boolean) // required isDirectory
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.