@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCodecInfo extends CodecInfo
CodecInfo.
Use the static factory method to create immutable instances:
ImmutableCodecInfo.of().
| Modifier and Type | Method and Description |
|---|---|
com.squareup.javapoet.TypeName |
codecType() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCodecInfo that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
valueType, codecType, instanceFields, needRegistryField. |
LinkedHashSet<InstanceField> |
instanceFields() |
boolean |
needRegistryField() |
static ImmutableCodecInfo |
of(TypeElement valueType,
com.squareup.javapoet.TypeName codecType,
LinkedHashSet<InstanceField> instanceFields,
boolean needRegistryField)
Construct a new immutable
CodecInfo instance. |
String |
toString()
Prints the immutable value
CodecInfo with attribute values. |
TypeElement |
valueType() |
public TypeElement valueType()
public com.squareup.javapoet.TypeName codecType()
public LinkedHashSet<InstanceField> instanceFields()
instanceFields in class CodecInfoinstanceFields attributepublic boolean needRegistryField()
needRegistryField in class CodecInfoneedRegistryField attributepublic boolean equals(@Nullable Object another)
ImmutableCodecInfo that have equal attribute values.public int hashCode()
valueType, codecType, instanceFields, needRegistryField.public String toString()
CodecInfo with attribute values.public static ImmutableCodecInfo of(TypeElement valueType, com.squareup.javapoet.TypeName codecType, LinkedHashSet<InstanceField> instanceFields, boolean needRegistryField)
CodecInfo instance.valueType - The value for the valueType attributecodecType - The value for the codecType attributeinstanceFields - The value for the instanceFields attributeneedRegistryField - The value for the needRegistryField attributeCopyright © 2015–2018. All rights reserved.