@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 value)
Copy the current immutable object by setting a value for the
codeGen attribute. |
ImmutableFieldModel |
withCustomCodecName(String value)
Copy the current immutable object by setting a value for the
customCodecName attribute. |
ImmutableFieldModel |
withDisableDecodeNullCheck(boolean value)
Copy the current immutable object by setting a value for the
disableDecodeNullCheck attribute. |
ImmutableFieldModel |
withDisableEncodeNullCheck(boolean value)
Copy the current immutable object by setting a value for the
disableEncodeNullCheck attribute. |
ImmutableFieldModel |
withDisableSetNullStatement(boolean value)
Copy the current immutable object by setting a value for the
disableSetNullStatement attribute. |
ImmutableFieldModel |
withFixedArray(int value)
Copy the current immutable object by setting a value for the
fixedArray attribute. |
ImmutableFieldModel |
withIdModel(IdModel value)
Copy the current immutable object by setting a value for the
idModel attribute. |
ImmutableFieldModel |
withMethodNameGet(String value)
Copy the current immutable object by setting a value for the
methodNameGet attribute. |
ImmutableFieldModel |
withMethodNameSet(String value)
Copy the current immutable object by setting a value for the
methodNameSet attribute. |
ImmutableFieldModel |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableFieldModel |
withOrder(int value)
Copy the current immutable object by setting a value for the
order attribute. |
ImmutableFieldModel |
withStoreEmptyCollection(boolean value)
Copy the current immutable object by setting a value for the
storeEmptyCollection attribute. |
ImmutableFieldModel |
withStoreNullValue(boolean value)
Copy the current immutable object by setting a value for the
storeNullValue attribute. |
ImmutableFieldModel |
withVarEl(VariableElement value)
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 value)
varEl attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for varElthis objectpublic final ImmutableFieldModel withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableFieldModel withOrder(int value)
order attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for orderthis objectpublic final ImmutableFieldModel withCustomCodecName(@Nullable String value)
customCodecName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for customCodecName (can be null)this objectpublic final ImmutableFieldModel withCodeGen(CodeGen value)
codeGen attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for codeGenthis objectpublic final ImmutableFieldModel withStoreNullValue(boolean value)
storeNullValue attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for storeNullValuethis objectpublic final ImmutableFieldModel withStoreEmptyCollection(boolean value)
storeEmptyCollection attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for storeEmptyCollectionthis objectpublic final ImmutableFieldModel withDisableEncodeNullCheck(boolean value)
disableEncodeNullCheck attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for disableEncodeNullCheckthis objectpublic final ImmutableFieldModel withDisableDecodeNullCheck(boolean value)
disableDecodeNullCheck attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for disableDecodeNullCheckthis objectpublic final ImmutableFieldModel withDisableSetNullStatement(boolean value)
disableSetNullStatement attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for disableSetNullStatementthis objectpublic final ImmutableFieldModel withFixedArray(int value)
fixedArray attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for fixedArraythis objectpublic final ImmutableFieldModel withIdModel(@Nullable IdModel value)
idModel attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for idModel (can be null)this objectpublic final ImmutableFieldModel withMethodNameSet(String value)
methodNameSet attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for methodNameSetthis objectpublic final ImmutableFieldModel withMethodNameGet(String value)
methodNameGet attribute.
An equals check used to prevent copying of the same value by returning this.value - 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.