@Generated(from="OptionalTypeInfo",
generator="Immutables")
@Generated(value="org.immutables.processor.ProxyProcessor")
public final class ImmutableOptionalTypeInfo<T>
extends OptionalTypeInfo<T>
OptionalTypeInfo.
Use the builder to create immutable instances:
ImmutableOptionalTypeInfo.builder().
Use the static factory method to create immutable instances:
ImmutableOptionalTypeInfo.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableOptionalTypeInfo.Builder<T>
Builds instances of type
ImmutableOptionalTypeInfo. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableOptionalTypeInfo.Builder<T> |
builder()
Creates a builder for
ImmutableOptionalTypeInfo. |
static <T> ImmutableOptionalTypeInfo<T> |
copyOf(OptionalTypeInfo<T> instance)
Creates an immutable copy of a
OptionalTypeInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableOptionalTypeInfo that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
value. |
static <T> ImmutableOptionalTypeInfo<T> |
of(TypeInfo<T> value)
Construct a new immutable
OptionalTypeInfo instance. |
String |
toString()
Prints the immutable value
OptionalTypeInfo with attribute values. |
TypeInfo<T> |
value() |
ImmutableOptionalTypeInfo<T> |
withValue(TypeInfo<T> value)
Copy the current immutable object by setting a value for the
value attribute. |
cast, isAssignable, isInstanceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcastIfNotNull, ifInstance, listOf, mapOf, of, optionalOfpublic TypeInfo<T> value()
value in class OptionalTypeInfo<T>value attributepublic final ImmutableOptionalTypeInfo<T> withValue(TypeInfo<T> value)
value attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic boolean equals(Object another)
ImmutableOptionalTypeInfo that have equal attribute values.public int hashCode()
value.public String toString()
OptionalTypeInfo with attribute values.public static <T> ImmutableOptionalTypeInfo<T> of(TypeInfo<T> value)
OptionalTypeInfo instance.T - generic parameter Tvalue - The value for the value attributepublic static <T> ImmutableOptionalTypeInfo<T> copyOf(OptionalTypeInfo<T> instance)
OptionalTypeInfo 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> ImmutableOptionalTypeInfo.Builder<T> builder()
ImmutableOptionalTypeInfo.
ImmutableOptionalTypeInfo.<T>builder()
.value(de.flapdoodle.commons.reflection.TypeInfo<T>) // required value
.build();
T - generic parameter TCopyright © 2026. All rights reserved.