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