@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","FieldModel"}) @Immutable public final class ImmutableFieldModel extends FieldModel
FieldModel.
Use the builder to create immutable instances:
ImmutableFieldModel.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFieldModel.Builder
Builds instances of type
ImmutableFieldModel. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableFieldModel.Builder |
builder()
Creates a builder for
ImmutableFieldModel. |
CodeGen |
codeGen() |
static ImmutableFieldModel |
copyOf(FieldModel instance)
Creates an immutable copy of a
FieldModel value. |
String |
customCodecName() |
boolean |
disableDecodeNullCheck() |
boolean |
disableEncodeNullCheck() |
boolean |
disableSetNullStatement() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFieldModel that have equal attribute values. |
int |
fixedArray() |
int |
hashCode()
Computes a hash code from attributes:
varEl, name, order, customCodecName, codeGen, storeNullValue, storeEmptyCollection, disableEncodeNullCheck, disableDecodeNullCheck, disableSetNullStatement, fixedArray, idModel, methodNameSet, methodNameGet. |
IdModel |
idModel() |
String |
methodNameGet() |
String |
methodNameSet() |
String |
name() |
int |
order() |
boolean |
storeEmptyCollection() |
boolean |
storeNullValue() |
String |
toString()
Prints the immutable value
FieldModel with attribute values. |
VariableElement |
varEl() |
ImmutableFieldModel |
withCodeGen(CodeGen codeGen)
Copy the current immutable object by setting a value for the
codeGen attribute. |
ImmutableFieldModel |
withCustomCodecName(String customCodecName)
Copy the current immutable object by setting a value for the
customCodecName attribute. |
ImmutableFieldModel |
withDisableDecodeNullCheck(boolean disableDecodeNullCheck)
Copy the current immutable object by setting a value for the
disableDecodeNullCheck attribute. |
ImmutableFieldModel |
withDisableEncodeNullCheck(boolean disableEncodeNullCheck)
Copy the current immutable object by setting a value for the
disableEncodeNullCheck attribute. |
ImmutableFieldModel |
withDisableSetNullStatement(boolean disableSetNullStatement)
Copy the current immutable object by setting a value for the
disableSetNullStatement attribute. |
ImmutableFieldModel |
withFixedArray(int fixedArray)
Copy the current immutable object by setting a value for the
fixedArray attribute. |
ImmutableFieldModel |
withIdModel(IdModel idModel)
Copy the current immutable object by setting a value for the
idModel attribute. |
ImmutableFieldModel |
withMethodNameGet(String methodNameGet)
Copy the current immutable object by setting a value for the
methodNameGet attribute. |
ImmutableFieldModel |
withMethodNameSet(String methodNameSet)
Copy the current immutable object by setting a value for the
methodNameSet attribute. |
ImmutableFieldModel |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableFieldModel |
withOrder(int order)
Copy the current immutable object by setting a value for the
order attribute. |
ImmutableFieldModel |
withStoreEmptyCollection(boolean storeEmptyCollection)
Copy the current immutable object by setting a value for the
storeEmptyCollection attribute. |
ImmutableFieldModel |
withStoreNullValue(boolean storeNullValue)
Copy the current immutable object by setting a value for the
storeNullValue attribute. |
ImmutableFieldModel |
withVarEl(VariableElement varEl)
Copy the current immutable object by setting a value for the
varEl attribute. |
compareTopublic VariableElement varEl()
varEl in class FieldModelvarEl attributepublic String name()
name in class FieldModelname attributepublic int order()
order in class FieldModelorder attribute@Nullable public String customCodecName()
customCodecName in class FieldModelcustomCodecName attributepublic CodeGen codeGen()
codeGen in class FieldModelcodeGen attributepublic boolean storeNullValue()
storeNullValue in class FieldModelstoreNullValue attributepublic boolean storeEmptyCollection()
storeEmptyCollection in class FieldModelstoreEmptyCollection attributepublic boolean disableEncodeNullCheck()
disableEncodeNullCheck in class FieldModeldisableEncodeNullCheck attributepublic boolean disableDecodeNullCheck()
disableDecodeNullCheck in class FieldModeldisableDecodeNullCheck attributepublic boolean disableSetNullStatement()
disableSetNullStatement in class FieldModeldisableSetNullStatement attributepublic int fixedArray()
fixedArray in class FieldModelfixedArray attribute@Nullable public IdModel idModel()
idModel in class FieldModelidModel attributepublic String methodNameSet()
methodNameSet in class FieldModelmethodNameSet attributepublic String methodNameGet()
methodNameGet in class FieldModelmethodNameGet attributepublic final ImmutableFieldModel withVarEl(VariableElement varEl)
varEl attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.varEl - A new value for varElthis objectpublic final ImmutableFieldModel withName(String name)
name attribute.
An equals check used to prevent copying of the same value by returning this.name - A new value for namethis objectpublic final ImmutableFieldModel withOrder(int order)
order attribute.
A value equality check is used to prevent copying of the same value by returning this.order - A new value for orderthis objectpublic final ImmutableFieldModel withCustomCodecName(@Nullable String customCodecName)
customCodecName attribute.
An equals check used to prevent copying of the same value by returning this.customCodecName - A new value for customCodecName (can be null)this objectpublic final ImmutableFieldModel withCodeGen(CodeGen codeGen)
codeGen attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.codeGen - A new value for codeGenthis objectpublic final ImmutableFieldModel withStoreNullValue(boolean storeNullValue)
storeNullValue attribute.
A value equality check is used to prevent copying of the same value by returning this.storeNullValue - A new value for storeNullValuethis objectpublic final ImmutableFieldModel withStoreEmptyCollection(boolean storeEmptyCollection)
storeEmptyCollection attribute.
A value equality check is used to prevent copying of the same value by returning this.storeEmptyCollection - A new value for storeEmptyCollectionthis objectpublic final ImmutableFieldModel withDisableEncodeNullCheck(boolean disableEncodeNullCheck)
disableEncodeNullCheck attribute.
A value equality check is used to prevent copying of the same value by returning this.disableEncodeNullCheck - A new value for disableEncodeNullCheckthis objectpublic final ImmutableFieldModel withDisableDecodeNullCheck(boolean disableDecodeNullCheck)
disableDecodeNullCheck attribute.
A value equality check is used to prevent copying of the same value by returning this.disableDecodeNullCheck - A new value for disableDecodeNullCheckthis objectpublic final ImmutableFieldModel withDisableSetNullStatement(boolean disableSetNullStatement)
disableSetNullStatement attribute.
A value equality check is used to prevent copying of the same value by returning this.disableSetNullStatement - A new value for disableSetNullStatementthis objectpublic final ImmutableFieldModel withFixedArray(int fixedArray)
fixedArray attribute.
A value equality check is used to prevent copying of the same value by returning this.fixedArray - A new value for fixedArraythis objectpublic final ImmutableFieldModel withIdModel(@Nullable IdModel idModel)
idModel attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.idModel - A new value for idModel (can be null)this objectpublic final ImmutableFieldModel withMethodNameSet(String methodNameSet)
methodNameSet attribute.
An equals check used to prevent copying of the same value by returning this.methodNameSet - A new value for methodNameSetthis objectpublic final ImmutableFieldModel withMethodNameGet(String methodNameGet)
methodNameGet attribute.
An equals check used to prevent copying of the same value by returning this.methodNameGet - A new value for methodNameGetthis objectpublic boolean equals(@Nullable Object another)
ImmutableFieldModel that have equal attribute values.public int hashCode()
varEl, name, order, customCodecName, codeGen, storeNullValue, storeEmptyCollection, disableEncodeNullCheck, disableDecodeNullCheck, disableSetNullStatement, fixedArray, idModel, methodNameSet, methodNameGet.public String toString()
FieldModel with attribute values.public static ImmutableFieldModel copyOf(FieldModel instance)
FieldModel value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableFieldModel.Builder builder()
ImmutableFieldModel.Copyright © 2015–2016. All rights reserved.