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