@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableUnvalidated<T> extends Object implements Unvalidated<T>
Unvalidated.
Use the builder to create immutable instances:
ImmutableUnvalidated.builder().
Use the static factory method to create immutable instances:
ImmutableUnvalidated.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableUnvalidated.Builder<T>
Builds instances of type
ImmutableUnvalidated. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableUnvalidated.Builder<T> |
builder()
Creates a builder for
ImmutableUnvalidated. |
static <T> ImmutableUnvalidated<T> |
copyOf(Unvalidated<T> instance)
Creates an immutable copy of a
Unvalidated value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableUnvalidated that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
wrapped. |
static <T> ImmutableUnvalidated<T> |
of(ValueSource<T> wrapped)
Construct a new immutable
Unvalidated instance. |
String |
toString()
Prints the immutable value
Unvalidated with attribute values. |
ImmutableUnvalidated<T> |
withWrapped(ValueSource<T> value)
Copy the current immutable object by setting a value for the
wrapped attribute. |
ValueSource<T> |
wrapped() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitwrappublic ValueSource<T> wrapped()
wrapped in interface Unvalidated<T>wrapped attributepublic final ImmutableUnvalidated<T> withWrapped(ValueSource<T> value)
wrapped attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for wrappedthis objectpublic boolean equals(@Nullable Object another)
ImmutableUnvalidated that have equal attribute values.public int hashCode()
wrapped.public String toString()
Unvalidated with attribute values.public static <T> ImmutableUnvalidated<T> of(ValueSource<T> wrapped)
Unvalidated instance.T - generic parameter Twrapped - The value for the wrapped attributepublic static <T> ImmutableUnvalidated<T> copyOf(Unvalidated<T> instance)
Unvalidated value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.T - generic parameter Tinstance - The instance to copypublic static <T> ImmutableUnvalidated.Builder<T> builder()
ImmutableUnvalidated.
ImmutableUnvalidated.<T>builder()
.wrapped(de.flapdoodle.formula.ValueSource<T>) // required wrapped
.build();
T - generic parameter TCopyright © 2023. All rights reserved.