@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableStringValue extends Value.StringValue
Value.StringValue.
Use the builder to create immutable instances:
ImmutableStringValue.builder().
Use the static factory method to create immutable instances:
ImmutableStringValue.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableStringValue.Builder
Builds instances of type
ImmutableStringValue. |
Value.ArrayValue, Value.BooleanValue, Value.DateTimeValue, Value.DurationValue, Value.FailedWithException<T>, Value.MapValue, Value.NullValue, Value.NumberValue, Value.StringValue| Modifier and Type | Method and Description |
|---|---|
static ImmutableStringValue.Builder |
builder()
Creates a builder for
ImmutableStringValue. |
static ImmutableStringValue |
copyOf(Value.StringValue instance)
Creates an immutable copy of a
Value.StringValue value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableStringValue that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
wrapped. |
static ImmutableStringValue |
of(String wrapped)
Construct a new immutable
StringValue instance. |
ImmutableStringValue |
withWrapped(String value)
Copy the current immutable object by setting a value for the
wrapped attribute. |
String |
wrapped() |
compareTopublic String wrapped()
public final ImmutableStringValue withWrapped(String value)
wrapped attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for wrappedthis objectpublic boolean equals(Object another)
ImmutableStringValue that have equal attribute values.public int hashCode()
wrapped.public static ImmutableStringValue of(String wrapped)
StringValue instance.wrapped - The value for the wrapped attributepublic static ImmutableStringValue copyOf(Value.StringValue instance)
Value.StringValue 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 ImmutableStringValue.Builder builder()
ImmutableStringValue.
ImmutableStringValue.builder()
.wrapped(String) // required wrapped
.build();
Copyright © 2024. All rights reserved.