public final class ImmutableOsReleaseFileMapEntry extends Object implements OsReleaseFileMapEntry
OsReleaseFileMapEntry.
Use the builder to create immutable instances:
ImmutableOsReleaseFileMapEntry.builder().
Use the static factory method to create immutable instances:
ImmutableOsReleaseFileMapEntry.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableOsReleaseFileMapEntry.Builder
Builds instances of type
ImmutableOsReleaseFileMapEntry. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableOsReleaseFileMapEntry.Builder |
builder()
Creates a builder for
ImmutableOsReleaseFileMapEntry. |
static ImmutableOsReleaseFileMapEntry |
copyOf(OsReleaseFileMapEntry instance)
Creates an immutable copy of a
OsReleaseFileMapEntry value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableOsReleaseFileMapEntry that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
key, valuePattern. |
String |
key() |
static ImmutableOsReleaseFileMapEntry |
of(String key,
Pattern valuePattern)
Construct a new immutable
OsReleaseFileMapEntry instance. |
String |
toString()
Prints the immutable value
OsReleaseFileMapEntry with attribute values. |
Pattern |
valuePattern() |
ImmutableOsReleaseFileMapEntry |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableOsReleaseFileMapEntry |
withValuePattern(Pattern value)
Copy the current immutable object by setting a value for the
valuePattern attribute. |
public String key()
key in interface OsReleaseFileMapEntrykey attributepublic Pattern valuePattern()
valuePattern in interface OsReleaseFileMapEntryvaluePattern attributepublic final ImmutableOsReleaseFileMapEntry withKey(String value)
key attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for keythis objectpublic final ImmutableOsReleaseFileMapEntry withValuePattern(Pattern value)
valuePattern attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for valuePatternthis objectpublic boolean equals(Object another)
ImmutableOsReleaseFileMapEntry that have equal attribute values.public int hashCode()
key, valuePattern.public String toString()
OsReleaseFileMapEntry with attribute values.public static ImmutableOsReleaseFileMapEntry of(String key, Pattern valuePattern)
OsReleaseFileMapEntry instance.key - The value for the key attributevaluePattern - The value for the valuePattern attributepublic static ImmutableOsReleaseFileMapEntry copyOf(OsReleaseFileMapEntry instance)
OsReleaseFileMapEntry 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 ImmutableOsReleaseFileMapEntry.Builder builder()
ImmutableOsReleaseFileMapEntry.
ImmutableOsReleaseFileMapEntry.builder()
.key(String) // required key
.valuePattern(regex.Pattern) // required valuePattern
.build();
Copyright © 2021. All rights reserved.