Package io.dialob.client.api
Class ImmutableStoreExceptionMsg
- java.lang.Object
-
- io.dialob.client.api.ImmutableStoreExceptionMsg
-
- All Implemented Interfaces:
DialobStore.StoreExceptionMsg
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableStoreExceptionMsg extends Object implements DialobStore.StoreExceptionMsg
Immutable implementation ofDialobStore.StoreExceptionMsg.Use the builder to create immutable instances:
ImmutableStoreExceptionMsg.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableStoreExceptionMsg.BuilderBuilds instances of typeImmutableStoreExceptionMsg.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableStoreExceptionMsg.Builderbuilder()Creates a builder forImmutableStoreExceptionMsg.static ImmutableStoreExceptionMsgcopyOf(DialobStore.StoreExceptionMsg instance)Creates an immutable copy of aDialobStore.StoreExceptionMsgvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableStoreExceptionMsgthat have equal attribute values.com.google.common.collect.ImmutableList<String>getArgs()StringgetId()StringgetValue()inthashCode()Computes a hash code from attributes:id,value,args.StringtoString()Prints the immutable valueStoreExceptionMsgwith attribute values.ImmutableStoreExceptionMsgwithArgs(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofargs.ImmutableStoreExceptionMsgwithArgs(String... elements)Copy the current immutable object with elements that replace the content ofargs.ImmutableStoreExceptionMsgwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableStoreExceptionMsgwithValue(String value)Copy the current immutable object by setting a value for thevalueattribute.
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceDialobStore.StoreExceptionMsg- Returns:
- The value of the
idattribute
-
getValue
public String getValue()
- Specified by:
getValuein interfaceDialobStore.StoreExceptionMsg- Returns:
- The value of the
valueattribute
-
getArgs
public com.google.common.collect.ImmutableList<String> getArgs()
- Specified by:
getArgsin interfaceDialobStore.StoreExceptionMsg- Returns:
- The value of the
argsattribute
-
withId
public final ImmutableStoreExceptionMsg withId(String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withValue
public final ImmutableStoreExceptionMsg withValue(String value)
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy of the
thisobject
-
withArgs
public final ImmutableStoreExceptionMsg withArgs(String... elements)
Copy the current immutable object with elements that replace the content ofargs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withArgs
public final ImmutableStoreExceptionMsg withArgs(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofargs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of args elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableStoreExceptionMsgthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,value,args.
-
toString
public String toString()
Prints the immutable valueStoreExceptionMsgwith attribute values.
-
copyOf
public static ImmutableStoreExceptionMsg copyOf(DialobStore.StoreExceptionMsg instance)
Creates an immutable copy of aDialobStore.StoreExceptionMsgvalue. 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 StoreExceptionMsg instance
-
builder
public static ImmutableStoreExceptionMsg.Builder builder()
Creates a builder forImmutableStoreExceptionMsg.ImmutableStoreExceptionMsg.builder() .id(String) // requiredid.value(String) // requiredvalue.addArgs|addAllArgs(String) //argselements .build();- Returns:
- A new ImmutableStoreExceptionMsg builder
-
-