Package io.dialob.executor
Class ImmutableAsyncFunctionCall
- java.lang.Object
-
- io.dialob.executor.ImmutableAsyncFunctionCall
-
- All Implemented Interfaces:
AsyncFunctionCall
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAsyncFunctionCall extends Object implements AsyncFunctionCall
Immutable implementation ofAsyncFunctionCall.Use the builder to create immutable instances:
ImmutableAsyncFunctionCall.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableAsyncFunctionCall.BuilderBuilds instances of typeImmutableAsyncFunctionCall.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableAsyncFunctionCall.Builderbuilder()Creates a builder forImmutableAsyncFunctionCall.static ImmutableAsyncFunctionCallcopyOf(AsyncFunctionCall instance)Creates an immutable copy of aAsyncFunctionCallvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableAsyncFunctionCallthat have equal attribute values.Object[]getArgs()StringgetFunctionName()Optional<String>getId()Optional<ItemId>getTargetId()inthashCode()Computes a hash code from attributes:id,targetId,functionName,args.StringtoString()Prints the immutable valueAsyncFunctionCallwith attribute values.ImmutableAsyncFunctionCallwithArgs(Object... elements)Copy the current immutable object with elements that replace the content ofargs.ImmutableAsyncFunctionCallwithFunctionName(String value)Copy the current immutable object by setting a value for thefunctionNameattribute.ImmutableAsyncFunctionCallwithId(String value)Copy the current immutable object by setting a present value for the optionalidattribute.ImmutableAsyncFunctionCallwithId(Optional<String> optional)Copy the current immutable object by setting an optional value for theidattribute.ImmutableAsyncFunctionCallwithTargetId(ItemId value)Copy the current immutable object by setting a present value for the optionaltargetIdattribute.ImmutableAsyncFunctionCallwithTargetId(Optional<? extends ItemId> optional)Copy the current immutable object by setting an optional value for thetargetIdattribute.
-
-
-
Method Detail
-
getId
public Optional<String> getId()
- Specified by:
getIdin interfaceAsyncFunctionCall- Returns:
- The value of the
idattribute
-
getTargetId
public Optional<ItemId> getTargetId()
- Specified by:
getTargetIdin interfaceAsyncFunctionCall- Returns:
- The value of the
targetIdattribute
-
getFunctionName
public String getFunctionName()
- Specified by:
getFunctionNamein interfaceAsyncFunctionCall- Returns:
- The value of the
functionNameattribute
-
getArgs
public Object[] getArgs()
- Specified by:
getArgsin interfaceAsyncFunctionCall- Returns:
- A cloned
argsarray
-
withId
public final ImmutableAsyncFunctionCall withId(String value)
Copy the current immutable object by setting a present value for the optionalidattribute.- Parameters:
value- The value for id- Returns:
- A modified copy of
thisobject
-
withId
public final ImmutableAsyncFunctionCall withId(Optional<String> optional)
Copy the current immutable object by setting an optional value for theidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for id- Returns:
- A modified copy of
thisobject
-
withTargetId
public final ImmutableAsyncFunctionCall withTargetId(ItemId value)
Copy the current immutable object by setting a present value for the optionaltargetIdattribute.- Parameters:
value- The value for targetId- Returns:
- A modified copy of
thisobject
-
withTargetId
public final ImmutableAsyncFunctionCall withTargetId(Optional<? extends ItemId> optional)
Copy the current immutable object by setting an optional value for thetargetIdattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for targetId- Returns:
- A modified copy of
thisobject
-
withFunctionName
public final ImmutableAsyncFunctionCall withFunctionName(String value)
Copy the current immutable object by setting a value for thefunctionNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for functionName- Returns:
- A modified copy of the
thisobject
-
withArgs
public final ImmutableAsyncFunctionCall withArgs(Object... elements)
Copy the current immutable object with elements that replace the content ofargs. The array is cloned before being saved as attribute values.- Parameters:
elements- The non-null elements for args- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableAsyncFunctionCallthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,targetId,functionName,args.
-
toString
public String toString()
Prints the immutable valueAsyncFunctionCallwith attribute values.
-
copyOf
public static ImmutableAsyncFunctionCall copyOf(AsyncFunctionCall instance)
Creates an immutable copy of aAsyncFunctionCallvalue. 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 AsyncFunctionCall instance
-
builder
public static ImmutableAsyncFunctionCall.Builder builder()
Creates a builder forImmutableAsyncFunctionCall.ImmutableAsyncFunctionCall.builder() .id(String) // optionalid.targetId(io.dialob.executor.model.ItemId) // optionaltargetId.functionName(String) // requiredfunctionName.args(Object) // requiredargs.build();- Returns:
- A new ImmutableAsyncFunctionCall builder
-
-