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 StringactionId()Returns the value of theactionIdrecord component.@Nullable StringentityId()Returns the value of theentityIdrecord component.booleanIndicates whether some other object is "equal to" this one.static UserInteraction.Contextstatic UserInteraction.Contextstatic UserInteraction.ContextinthashCode()Returns a hash code value for this object.labels()Returns the value of thelabelsrecord component.@Nullable StringReturns the value of themodelNamerecord component.org.joda.time.DateTimeReturns the value of thetimestamprecord component.final StringtoString()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, org.joda.time.DateTime timestamp) Creates an instance of aContextrecord class.- Parameters:
entityId- the value for theentityIdrecord componentmodelName- the value for themodelNamerecord componentactionId- the value for theactionIdrecord componentlabels- the value for thelabelsrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
forDetail
public static UserInteraction.Context forDetail(String modelName, String entityId, List<String> labels, org.joda.time.DateTime timestamp) -
forList
public static UserInteraction.Context forList(String modelName, List<String> labels, org.joda.time.DateTime timestamp) -
forAction
public static UserInteraction.Context forAction(String actionId, List<String> labels, org.joda.time.DateTime timestamp) -
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 theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
actionId
Returns the value of theactionIdrecord component.- Returns:
- the value of the
actionIdrecord component
-
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-
timestamp
public org.joda.time.DateTime timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-