public final class ImmutableLsbReleaseFile extends Object implements LsbReleaseFile
LsbReleaseFile.
Use the builder to create immutable instances:
ImmutableLsbReleaseFile.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableLsbReleaseFile.Builder
Builds instances of type
ImmutableLsbReleaseFile. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
attributes() |
static ImmutableLsbReleaseFile.Builder |
builder()
Creates a builder for
ImmutableLsbReleaseFile. |
static ImmutableLsbReleaseFile |
copyOf(LsbReleaseFile instance)
Creates an immutable copy of a
LsbReleaseFile value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableLsbReleaseFile that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
attributes. |
String |
toString()
Prints the immutable value
LsbReleaseFile with attribute values. |
ImmutableLsbReleaseFile |
withAttributes(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
attributes map with the specified map. |
public Map<String,String> attributes()
attributes in interface LsbReleaseFileattributes attributepublic final ImmutableLsbReleaseFile withAttributes(Map<String,? extends String> entries)
attributes map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the attributes mapthis objectpublic boolean equals(Object another)
ImmutableLsbReleaseFile that have equal attribute values.public int hashCode()
attributes.public String toString()
LsbReleaseFile with attribute values.public static ImmutableLsbReleaseFile copyOf(LsbReleaseFile instance)
LsbReleaseFile 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 ImmutableLsbReleaseFile.Builder builder()
ImmutableLsbReleaseFile.
ImmutableLsbReleaseFile.builder()
.putAttributes|putAllAttributes(String => String) // attributes mappings
.build();
Copyright © 2025. All rights reserved.