Package io.dialob.api.proto
Class ImmutableActions
java.lang.Object
io.dialob.api.proto.ImmutableActions
- All Implemented Interfaces:
Actions,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableActions
extends Object
implements Actions
Immutable implementation of
Actions.
Use the builder to create immutable instances:
ImmutableActions.builder().
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableActions.Builderbuilder()Creates a builder forImmutableActions.static ImmutableActionsCreates an immutable copy of aActionsvalue.booleanThis instance is equal to all instances ofImmutableActionsthat have equal attribute values.getRev()inthashCode()Computes a hash code from attributes:rev,actions.toString()Prints the immutable valueActionswith attribute values.final ImmutableActionswithActions(Action... elements) Copy the current immutable object with elements that replace the content ofactions.final ImmutableActionswithActions(Iterable<? extends Action> elements) Copy the current immutable object with elements that replace the content ofactions.final ImmutableActionsCopy the current immutable object by setting a value for therevattribute.
-
Method Details
-
getRev
-
getActions
- Specified by:
getActionsin interfaceActions- Returns:
- The value of the
actionsattribute
-
withRev
Copy the current immutable object by setting a value for therevattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for rev (can benull)- Returns:
- A modified copy of the
thisobject
-
withActions
Copy the current immutable object with elements that replace the content ofactions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withActions
Copy the current immutable object with elements that replace the content ofactions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of actions elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableActionsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:rev,actions. -
toString
Prints the immutable valueActionswith attribute values. -
copyOf
Creates an immutable copy of aActionsvalue. 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 Actions instance
-
builder
Creates a builder forImmutableActions.ImmutableActions.builder() .rev(String | null) // nullablerev.actions(List<io.dialob.api.proto.Action> | null) // nullableactions.build();- Returns:
- A new ImmutableActions builder
-