Package com.priint.pubserverapi.workflow
Record Class Task.Context
java.lang.Object
java.lang.Record
com.priint.pubserverapi.workflow.Task.Context
- Enclosing class:
Task
The same serverTime is captured once and shared by all rows of one execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.project()Returns the value of theprojectrecord component.Returns the value of theserverTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Context
Creates an instance of aContextrecord class.- Parameters:
project- the value for theprojectrecord componentserverTime- the value for theserverTimerecord component
-
-
Method Details
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
serverTime
Returns the value of theserverTimerecord component.- Returns:
- the value of the
serverTimerecord component
-