public final class ImmutableOsReleaseFile extends Object implements OsReleaseFile
OsReleaseFile.
Use the builder to create immutable instances:
ImmutableOsReleaseFile.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableOsReleaseFile.Builder
Builds instances of type
ImmutableOsReleaseFile. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
attributes() |
static ImmutableOsReleaseFile.Builder |
builder()
Creates a builder for
ImmutableOsReleaseFile. |
static ImmutableOsReleaseFile |
copyOf(OsReleaseFile instance)
Creates an immutable copy of a
OsReleaseFile value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableOsReleaseFile that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
attributes. |
String |
toString()
Prints the immutable value
OsReleaseFile with attribute values. |
ImmutableOsReleaseFile |
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 OsReleaseFileattributes attributepublic final ImmutableOsReleaseFile 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)
ImmutableOsReleaseFile that have equal attribute values.public int hashCode()
attributes.public String toString()
OsReleaseFile with attribute values.public static ImmutableOsReleaseFile copyOf(OsReleaseFile instance)
OsReleaseFile 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 ImmutableOsReleaseFile.Builder builder()
ImmutableOsReleaseFile.
ImmutableOsReleaseFile.builder()
.putAttributes|putAllAttributes(String => String) // attributes mappings
.build();
Copyright © 2021. All rights reserved.