@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","InstanceField"}) @Immutable public final class ImmutableInstanceField extends InstanceField
InstanceField.
Use builder to create immutable instances:
ImmutableInstanceField.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableInstanceField.Builder
Builds instances of
ImmutableInstanceField. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableInstanceField.Builder |
builder()
Creates builder for
ImmutableInstanceField. |
com.squareup.javapoet.TypeName |
codecForClass() |
static ImmutableInstanceField |
copyOf(InstanceField instance)
Creates immutable copy of
InstanceField. |
boolean |
customCodec() |
boolean |
equals(Object another)
This instance is equal to instances of
ImmutableInstanceField with equal attribute values. |
int |
hashCode()
Computes hash code from attributes:
type, name, codecForClass, customCodec. |
String |
name() |
String |
toString()
Prints immutable value
InstanceField... with attribute values,
excluding any non-generated and auxiliary attributes. |
com.squareup.javapoet.TypeName |
type() |
ImmutableInstanceField |
withCodecForClass(com.squareup.javapoet.TypeName value)
Copy current immutable object by setting value for
codecForClass. |
ImmutableInstanceField |
withCustomCodec(boolean value)
Copy current immutable object by setting value for
customCodec. |
ImmutableInstanceField |
withName(String value)
Copy current immutable object by setting value for
name. |
ImmutableInstanceField |
withType(com.squareup.javapoet.TypeName value)
Copy current immutable object by setting value for
type. |
compareTo, isRegistry, isRegistryCodecpublic com.squareup.javapoet.TypeName type()
type in class InstanceFieldtype attributepublic String name()
name in class InstanceFieldname attribute@Nullable public com.squareup.javapoet.TypeName codecForClass()
codecForClass in class InstanceFieldcodecForClass attributepublic boolean customCodec()
customCodec in class InstanceFieldcustomCodec attributepublic final ImmutableInstanceField withType(com.squareup.javapoet.TypeName value)
type.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for typethis objectpublic final ImmutableInstanceField withName(String value)
name.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for namethis objectpublic final ImmutableInstanceField withCodecForClass(@Nullable com.squareup.javapoet.TypeName value)
codecForClass.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for codecForClass, can be nullthis objectpublic final ImmutableInstanceField withCustomCodec(boolean value)
customCodec.
Value equality check is used to prevent copying of the same value by returning this.value - new value for customCodecthis objectpublic boolean equals(@Nullable Object another)
ImmutableInstanceField with equal attribute values.public int hashCode()
type, name, codecForClass, customCodec.public String toString()
InstanceField... with attribute values,
excluding any non-generated and auxiliary attributes.public static ImmutableInstanceField copyOf(InstanceField instance)
InstanceField.
Uses accessors to get values to initialize immutable instance.
If an instance is already immutable, it is returned as is.instance - instance to copypublic static ImmutableInstanceField.Builder builder()
ImmutableInstanceField.Copyright © 2015. All rights reserved.