@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","IdModel"}) @Immutable public final class ImmutableIdModel extends IdModel
IdModel.
Use builder to create immutable instances:
ImmutableIdModel.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableIdModel.Builder
Builds instances of
ImmutableIdModel. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableIdModel.Builder |
builder()
Creates builder for
ImmutableIdModel. |
String |
codecName() |
Id.IdConversion |
conversion() |
static ImmutableIdModel |
copyOf(IdModel instance)
Creates immutable copy of
IdModel. |
boolean |
equals(Object another)
This instance is equal to instances of
ImmutableIdModel with equal attribute values. |
String |
generatorName() |
int |
hashCode()
Computes hash code from attributes:
generatorName, conversion, codecName. |
String |
toString()
Prints immutable value
IdModel... with attribute values,
excluding any non-generated and auxiliary attributes. |
ImmutableIdModel |
withCodecName(String value)
Copy current immutable object by setting value for
codecName. |
ImmutableIdModel |
withConversion(Id.IdConversion value)
Copy current immutable object by setting value for
conversion. |
ImmutableIdModel |
withGeneratorName(String value)
Copy current immutable object by setting value for
generatorName. |
@Nullable public String generatorName()
generatorName in class IdModelgeneratorName attribute@Nullable public Id.IdConversion conversion()
conversion in class IdModelconversion attributepublic final ImmutableIdModel withGeneratorName(@Nullable String value)
generatorName.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for generatorName, can be nullthis objectpublic final ImmutableIdModel withConversion(@Nullable Id.IdConversion value)
conversion.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for conversion, can be nullthis objectpublic final ImmutableIdModel withCodecName(@Nullable String value)
codecName.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for codecName, can be nullthis objectpublic boolean equals(@Nullable Object another)
ImmutableIdModel with equal attribute values.public int hashCode()
generatorName, conversion, codecName.public String toString()
IdModel... with attribute values,
excluding any non-generated and auxiliary attributes.public static ImmutableIdModel copyOf(IdModel instance)
IdModel.
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 ImmutableIdModel.Builder builder()
ImmutableIdModel.Copyright © 2015. All rights reserved.