public final class ImmutableSystemProperties extends SystemProperties
SystemProperties.
Use the builder to create immutable instances:
ImmutableSystemProperties.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSystemProperties.Builder
Builds instances of type
ImmutableSystemProperties. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSystemProperties.Builder |
builder()
Creates a builder for
ImmutableSystemProperties. |
static ImmutableSystemProperties |
copyOf(SystemProperties instance)
Creates an immutable copy of a
SystemProperties value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSystemProperties that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
value. |
String |
toString()
Prints the immutable value
SystemProperties with attribute values. |
Map<String,String> |
value() |
ImmutableSystemProperties |
withValue(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
value map with the specified map. |
of, ofpublic Map<String,String> value()
value in class SystemPropertiesvalue attributepublic final ImmutableSystemProperties withValue(Map<String,? extends String> entries)
value 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 value mapthis objectpublic boolean equals(Object another)
ImmutableSystemProperties that have equal attribute values.public int hashCode()
value.public String toString()
SystemProperties with attribute values.public static ImmutableSystemProperties copyOf(SystemProperties instance)
SystemProperties 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 ImmutableSystemProperties.Builder builder()
ImmutableSystemProperties.
ImmutableSystemProperties.builder()
.putValue|putAllValue(String => String) // value mappings
.build();
Copyright © 2024. All rights reserved.