Record Class JobClaim
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.core.nonentities.job.JobClaim
- Record Components:
databaseId- job database identifierjobId- public job identifierworkerId- worker identifierfencingToken- ownership version
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedatabaseIdrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefencingTokenrecord component.final inthashCode()Returns a hash code value for this object.jobId()Returns the value of thejobIdrecord component.final StringtoString()Returns a string representation of this record class.workerId()Returns the value of theworkerIdrecord component.
-
Constructor Details
-
JobClaim
Creates an instance of aJobClaimrecord class.- Parameters:
databaseId- the value for thedatabaseIdrecord componentjobId- the value for thejobIdrecord componentworkerId- the value for theworkerIdrecord componentfencingToken- the value for thefencingTokenrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
databaseId
public long databaseId()Returns the value of thedatabaseIdrecord component.- Returns:
- the value of the
databaseIdrecord component
-
jobId
-
workerId
-
fencingToken
public long fencingToken()Returns the value of thefencingTokenrecord component.- Returns:
- the value of the
fencingTokenrecord component
-