@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","FieldModel"}) @Immutable public final class ImmutableFieldModel extends FieldModel
FieldModel.
Use builder to create immutable instances:
ImmutableFieldModel.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFieldModel.Builder
Builds instances of
ImmutableFieldModel. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableFieldModel.Builder |
builder()
Creates builder for
ImmutableFieldModel. |
CodeGen |
codeGen() |
static ImmutableFieldModel |
copyOf(FieldModel instance)
Creates immutable copy of
FieldModel. |
String |
customCodecName() |
boolean |
disableDecodeNullCheck() |
boolean |
disableEncodeNullCheck() |
boolean |
disableSetNullStatement() |
boolean |
equals(Object another)
This instance is equal to instances of
ImmutableFieldModel with equal attribute values. |
int |
hashCode()
Computes hash code from attributes:
varEl, name, order, customCodecName, codeGen, storeNullValue, storeEmptyCollection, disableEncodeNullCheck, disableDecodeNullCheck, disableSetNullStatement, idModel, methodNameSet, methodNameGet. |
IdModel |
idModel() |
String |
methodNameGet() |
String |
methodNameSet() |
String |
name() |
int |
order() |
boolean |
storeEmptyCollection() |
boolean |
storeNullValue() |
String |
toString()
Prints immutable value
FieldModel... with attribute values,
excluding any non-generated and auxiliary attributes. |
VariableElement |
varEl() |
ImmutableFieldModel |
withCodeGen(CodeGen value)
Copy current immutable object by setting value for
codeGen. |
ImmutableFieldModel |
withCustomCodecName(String value)
Copy current immutable object by setting value for
customCodecName. |
ImmutableFieldModel |
withDisableDecodeNullCheck(boolean value)
Copy current immutable object by setting value for
disableDecodeNullCheck. |
ImmutableFieldModel |
withDisableEncodeNullCheck(boolean value)
Copy current immutable object by setting value for
disableEncodeNullCheck. |
ImmutableFieldModel |
withDisableSetNullStatement(boolean value)
Copy current immutable object by setting value for
disableSetNullStatement. |
ImmutableFieldModel |
withIdModel(IdModel value)
Copy current immutable object by setting value for
idModel. |
ImmutableFieldModel |
withMethodNameGet(String value)
Copy current immutable object by setting value for
methodNameGet. |
ImmutableFieldModel |
withMethodNameSet(String value)
Copy current immutable object by setting value for
methodNameSet. |
ImmutableFieldModel |
withName(String value)
Copy current immutable object by setting value for
name. |
ImmutableFieldModel |
withOrder(int value)
Copy current immutable object by setting value for
order. |
ImmutableFieldModel |
withStoreEmptyCollection(boolean value)
Copy current immutable object by setting value for
storeEmptyCollection. |
ImmutableFieldModel |
withStoreNullValue(boolean value)
Copy current immutable object by setting value for
storeNullValue. |
ImmutableFieldModel |
withVarEl(VariableElement value)
Copy current immutable object by setting value for
varEl. |
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 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 value)
varEl.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for varElthis objectpublic final ImmutableFieldModel 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 ImmutableFieldModel withOrder(int value)
order.
Value equality check is used to prevent copying of the same value by returning this.value - new value for orderthis objectpublic final ImmutableFieldModel withCustomCodecName(@Nullable String value)
customCodecName.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for customCodecName, can be nullthis objectpublic final ImmutableFieldModel withCodeGen(CodeGen value)
codeGen.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for codeGenthis objectpublic final ImmutableFieldModel withStoreNullValue(boolean value)
storeNullValue.
Value equality check is used to prevent copying of the same value by returning this.value - new value for storeNullValuethis objectpublic final ImmutableFieldModel withStoreEmptyCollection(boolean value)
storeEmptyCollection.
Value equality check is used to prevent copying of the same value by returning this.value - new value for storeEmptyCollectionthis objectpublic final ImmutableFieldModel withDisableEncodeNullCheck(boolean value)
disableEncodeNullCheck.
Value equality check is used to prevent copying of the same value by returning this.value - new value for disableEncodeNullCheckthis objectpublic final ImmutableFieldModel withDisableDecodeNullCheck(boolean value)
disableDecodeNullCheck.
Value equality check is used to prevent copying of the same value by returning this.value - new value for disableDecodeNullCheckthis objectpublic final ImmutableFieldModel withDisableSetNullStatement(boolean value)
disableSetNullStatement.
Value equality check is used to prevent copying of the same value by returning this.value - new value for disableSetNullStatementthis objectpublic final ImmutableFieldModel withIdModel(@Nullable IdModel value)
idModel.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for idModel, can be nullthis objectpublic final ImmutableFieldModel withMethodNameSet(String value)
methodNameSet.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for methodNameSetthis objectpublic final ImmutableFieldModel withMethodNameGet(String value)
methodNameGet.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for methodNameGetthis objectpublic boolean equals(@Nullable Object another)
ImmutableFieldModel with equal attribute values.public int hashCode()
varEl, name, order, customCodecName, codeGen, storeNullValue, storeEmptyCollection, disableEncodeNullCheck, disableDecodeNullCheck, disableSetNullStatement, idModel, methodNameSet, methodNameGet.public String toString()
FieldModel... with attribute values,
excluding any non-generated and auxiliary attributes.public static ImmutableFieldModel copyOf(FieldModel instance)
FieldModel.
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 ImmutableFieldModel.Builder builder()
ImmutableFieldModel.Copyright © 2015. All rights reserved.