@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableClassTypeInfo<T> extends ClassTypeInfo<T>
ClassTypeInfo.
Use the builder to create immutable instances:
ImmutableClassTypeInfo.builder().
Use the static factory method to create immutable instances:
ImmutableClassTypeInfo.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableClassTypeInfo.Builder<T>
Builds instances of type
ImmutableClassTypeInfo. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableClassTypeInfo.Builder<T> |
builder()
Creates a builder for
ImmutableClassTypeInfo. |
static <T> ImmutableClassTypeInfo<T> |
copyOf(ClassTypeInfo<T> instance)
Creates an immutable copy of a
ClassTypeInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableClassTypeInfo that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
type. |
static <T> ImmutableClassTypeInfo<T> |
of(Class<T> type)
Construct a new immutable
ClassTypeInfo instance. |
String |
toString()
Prints the immutable value
ClassTypeInfo with attribute values. |
Class<T> |
type() |
ImmutableClassTypeInfo<T> |
withType(Class<T> value)
Copy the current immutable object by setting a value for the
type attribute. |
cast, isInstancepublic Class<T> type()
type in class ClassTypeInfo<T>type attributepublic final ImmutableClassTypeInfo<T> withType(Class<T> value)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic boolean equals(Object another)
ImmutableClassTypeInfo that have equal attribute values.public int hashCode()
type.public String toString()
ClassTypeInfo with attribute values.public static <T> ImmutableClassTypeInfo<T> of(Class<T> type)
ClassTypeInfo instance.T - generic parameter Ttype - The value for the type attributepublic static <T> ImmutableClassTypeInfo<T> copyOf(ClassTypeInfo<T> instance)
ClassTypeInfo 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> ImmutableClassTypeInfo.Builder<T> builder()
ImmutableClassTypeInfo.
ImmutableClassTypeInfo.<T>builder()
.type(Class<T>) // required type
.build();
T - generic parameter TCopyright © 2023. All rights reserved.