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 ofActions.Use the builder to create immutable instances:
ImmutableActions.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableActions.BuilderBuilds instances of typeImmutableActions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableActions.Builderbuilder()Creates a builder forImmutableActions.static ImmutableActionscopyOf(Actions instance)Creates an immutable copy of aActionsvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableActionsthat have equal attribute values.List<Action>getActions()StringgetRev()inthashCode()Computes a hash code from attributes:rev,actions.StringtoString()Prints the immutable valueActionswith attribute values.ImmutableActionswithActions(Action... elements)Copy the current immutable object with elements that replace the content ofactions.ImmutableActionswithActions(Iterable<? extends Action> elements)Copy the current immutable object with elements that replace the content ofactions.ImmutableActionswithRev(String value)Copy the current immutable object by setting a value for therevattribute.
-
-
-
Method Detail
-
getRev
public String getRev()
-
getActions
public List<Action> getActions()
- Specified by:
getActionsin interfaceActions- Returns:
- The value of the
actionsattribute
-
withRev
public final ImmutableActions withRev(String value)
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
public final ImmutableActions withActions(Action... elements)
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
public final ImmutableActions withActions(Iterable<? extends Action> elements)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueActionswith attribute values.
-
copyOf
public static ImmutableActions copyOf(Actions instance)
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
public static ImmutableActions.Builder 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
-
-