Class ImmutableErrorId
java.lang.Object
io.dialob.session.engine.session.model.ImmutableErrorId
- All Implemented Interfaces:
ErrorId,ItemId,Serializable
@Generated(from="ErrorId",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableErrorId
extends Object
implements ErrorId
Immutable implementation of
ErrorId.
Use the builder to create immutable instances:
ImmutableErrorId.builder().
Use the static factory method to create immutable instances:
ImmutableErrorId.of().
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableErrorId.Builderbuilder()Creates a builder forImmutableErrorId.static ImmutableErrorIdCreates an immutable copy of aErrorIdvalue.booleanThis instance is equal to all instances ofImmutableErrorIdthat have equal attribute values.getCode()inthashCode()Computes a hash code from attributes:itemId,code.static ImmutableErrorIdConstruct a new immutableErrorIdinstance.toString()Prints the immutable valueErrorIdwith attribute values.final ImmutableErrorIdCopy the current immutable object by setting a value for thecodeattribute.final ImmutableErrorIdwithItemId(ItemId value) Copy the current immutable object by setting a value for theitemIdattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.dialob.session.engine.session.model.ErrorId
getParent, getValue, isPartialMethods inherited from interface io.dialob.session.engine.session.model.ItemId
withParent, withParent
-
Method Details
-
getItemId
-
getCode
-
withItemId
Copy the current immutable object by setting a value for theitemIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Specified by:
withItemIdin interfaceErrorId- Parameters:
value- A new value for itemId- Returns:
- A modified copy or the
thisobject
-
withCode
Copy the current immutable object by setting a value for thecodeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for code (can benull)- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableErrorIdthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:itemId,code. -
toString
Prints the immutable valueErrorIdwith attribute values. -
of
Construct a new immutableErrorIdinstance.- Parameters:
itemId- The value for theitemIdattributecode- The value for thecodeattribute- Returns:
- An immutable ErrorId instance
-
copyOf
Creates an immutable copy of aErrorIdvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ErrorId instance
-
builder
Creates a builder forImmutableErrorId.ImmutableErrorId.builder() .itemId(io.dialob.session.engine.session.model.ItemId) // requireditemId.code(String | null) // nullablecode.build();- Returns:
- A new ImmutableErrorId builder
-