public final class ImmutableLsbReleaseFileMapEntry extends Object implements LsbReleaseFileMapEntry
LsbReleaseFileMapEntry.
Use the builder to create immutable instances:
ImmutableLsbReleaseFileMapEntry.builder().
Use the static factory method to create immutable instances:
ImmutableLsbReleaseFileMapEntry.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableLsbReleaseFileMapEntry.Builder
Builds instances of type
ImmutableLsbReleaseFileMapEntry. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableLsbReleaseFileMapEntry.Builder |
builder()
Creates a builder for
ImmutableLsbReleaseFileMapEntry. |
static ImmutableLsbReleaseFileMapEntry |
copyOf(LsbReleaseFileMapEntry instance)
Creates an immutable copy of a
LsbReleaseFileMapEntry value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableLsbReleaseFileMapEntry that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
key, valuePattern. |
String |
key() |
static ImmutableLsbReleaseFileMapEntry |
of(String key,
Pattern valuePattern)
Construct a new immutable
LsbReleaseFileMapEntry instance. |
String |
toString()
Prints the immutable value
LsbReleaseFileMapEntry with attribute values. |
Pattern |
valuePattern() |
ImmutableLsbReleaseFileMapEntry |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableLsbReleaseFileMapEntry |
withValuePattern(Pattern value)
Copy the current immutable object by setting a value for the
valuePattern attribute. |
public String key()
key in interface LsbReleaseFileMapEntrykey attributepublic Pattern valuePattern()
valuePattern in interface LsbReleaseFileMapEntryvaluePattern attributepublic final ImmutableLsbReleaseFileMapEntry 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 ImmutableLsbReleaseFileMapEntry 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)
ImmutableLsbReleaseFileMapEntry that have equal attribute values.public int hashCode()
key, valuePattern.public String toString()
LsbReleaseFileMapEntry with attribute values.public static ImmutableLsbReleaseFileMapEntry of(String key, Pattern valuePattern)
LsbReleaseFileMapEntry instance.key - The value for the key attributevaluePattern - The value for the valuePattern attributepublic static ImmutableLsbReleaseFileMapEntry copyOf(LsbReleaseFileMapEntry instance)
LsbReleaseFileMapEntry 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 ImmutableLsbReleaseFileMapEntry.Builder builder()
ImmutableLsbReleaseFileMapEntry.
ImmutableLsbReleaseFileMapEntry.builder()
.key(String) // required key
.valuePattern(regex.Pattern) // required valuePattern
.build();
Copyright © 2024. All rights reserved.