@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFStatInfo extends Object implements FStatInfo
FStatInfo.
Use the builder to create immutable instances:
ImmutableFStatInfo.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFStatInfo.Builder
Builds instances of type
ImmutableFStatInfo. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableFStatInfo.Builder |
builder()
Creates a builder for
ImmutableFStatInfo. |
static ImmutableFStatInfo |
copyOf(FStatInfo instance)
Creates an immutable copy of a
FStatInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFStatInfo that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
modifiedTime, size. |
Instant |
modifiedTime()
Last modified time of the file.
|
long |
size()
File size in bytes.
|
String |
toString()
Prints the immutable value
FStatInfo with attribute values. |
ImmutableFStatInfo |
withModifiedTime(Instant value)
Copy the current immutable object by setting a value for the
modifiedTime attribute. |
ImmutableFStatInfo |
withSize(long value)
Copy the current immutable object by setting a value for the
size attribute. |
public Instant modifiedTime()
modifiedTime in interface FStatInfopublic final ImmutableFStatInfo withModifiedTime(Instant value)
modifiedTime attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for modifiedTimethis objectpublic final ImmutableFStatInfo withSize(long value)
size attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for sizethis objectpublic boolean equals(@Nullable Object another)
ImmutableFStatInfo that have equal attribute values.public int hashCode()
modifiedTime, size.public String toString()
FStatInfo with attribute values.public static ImmutableFStatInfo copyOf(FStatInfo instance)
FStatInfo 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 ImmutableFStatInfo.Builder builder()
ImmutableFStatInfo.
ImmutableFStatInfo.builder()
.modifiedTime(java.time.Instant) // required modifiedTime
.size(long) // required size
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.