Package io.resys.hdes.client.api
Class ImmutableStoreExceptionMsg
java.lang.Object
io.resys.hdes.client.api.ImmutableStoreExceptionMsg
- All Implemented Interfaces:
HdesStore.StoreExceptionMsg
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableStoreExceptionMsg
extends Object
implements HdesStore.StoreExceptionMsg
Immutable implementation of
HdesStore.StoreExceptionMsg.
Use the builder to create immutable instances:
ImmutableStoreExceptionMsg.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableStoreExceptionMsg. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableStoreExceptionMsg.static ImmutableStoreExceptionMsgcopyOf(HdesStore.StoreExceptionMsg instance) Creates an immutable copy of aHdesStore.StoreExceptionMsgvalue.booleanThis instance is equal to all instances ofImmutableStoreExceptionMsgthat have equal attribute values.com.google.common.collect.ImmutableList<String>getArgs()getId()getValue()inthashCode()Computes a hash code from attributes:id,value,args.toString()Prints the immutable valueStoreExceptionMsgwith attribute values.Copy the current immutable object with elements that replace the content ofargs.Copy the current immutable object with elements that replace the content ofargs.Copy the current immutable object by setting a value for theidattribute.Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceHdesStore.StoreExceptionMsg- Returns:
- The value of the
idattribute
-
getValue
- Specified by:
getValuein interfaceHdesStore.StoreExceptionMsg- Returns:
- The value of the
valueattribute
-
getArgs
- Specified by:
getArgsin interfaceHdesStore.StoreExceptionMsg- Returns:
- The value of the
argsattribute
-
withId
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
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
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
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
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
Prints the immutable valueStoreExceptionMsgwith attribute values. -
copyOf
Creates an immutable copy of aHdesStore.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
Creates a builder forImmutableStoreExceptionMsg.ImmutableStoreExceptionMsg.builder() .id(String) // requiredid.value(String) // requiredvalue.addArgs|addAllArgs(String) //argselements .build();- Returns:
- A new ImmutableStoreExceptionMsg builder
-