Record Class UserInteraction.Context
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.client.api.userinteraction.UserInteraction.Context
- Enclosing class:
UserInteraction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String
actionId()
Returns the value of theactionId
record component.@Nullable String
entityId()
Returns the value of theentityId
record component.boolean
Indicates whether some other object is "equal to" this one.static UserInteraction.Context
static UserInteraction.Context
static UserInteraction.Context
int
hashCode()
Returns a hash code value for this object.labels()
Returns the value of thelabels
record component.@Nullable String
Returns the value of themodelName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Context
public Context(@Nullable @Nullable String entityId, @Nullable @Nullable String modelName, @Nullable @Nullable String actionId, List<String> labels) Creates an instance of aContext
record class.- Parameters:
entityId
- the value for theentityId
record componentmodelName
- the value for themodelName
record componentactionId
- the value for theactionId
record componentlabels
- the value for thelabels
record component
-
-
Method Details
-
forDetail
public static UserInteraction.Context forDetail(String modelName, String entityId, List<String> labels) -
forList
-
forAction
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
entityId
Returns the value of theentityId
record component.- Returns:
- the value of the
entityId
record component
-
modelName
Returns the value of themodelName
record component.- Returns:
- the value of the
modelName
record component
-
actionId
Returns the value of theactionId
record component.- Returns:
- the value of the
actionId
record component
-
labels
Returns the value of thelabels
record component.- Returns:
- the value of the
labels
record component
-