Record Class RequestModel
java.lang.Object
java.lang.Record
org.exoplatform.processes.mcp.model.RequestModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompletedrecord component.Returns the value of thecreatedByrecord component.Returns the value of thecreatedDaterecord component.Returns the value of thedescriptionrecord component.dueDate()Returns the value of thedueDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.longReturns the value of theprojectIdrecord component.status()Returns the value of thestatusrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequestModel
public RequestModel(long id, String title, String description, String status, boolean completed, String createdBy, Date createdDate, Date dueDate, long projectId) Creates an instance of aRequestModelrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentstatus- the value for thestatusrecord componentcompleted- the value for thecompletedrecord componentcreatedBy- the value for thecreatedByrecord componentcreatedDate- the value for thecreatedDaterecord componentdueDate- the value for thedueDaterecord componentprojectId- the value for theprojectIdrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
completed
public boolean completed()Returns the value of thecompletedrecord component.- Returns:
- the value of the
completedrecord component
-
createdBy
Returns the value of thecreatedByrecord component.- Returns:
- the value of the
createdByrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
dueDate
Returns the value of thedueDaterecord component.- Returns:
- the value of the
dueDaterecord component
-
projectId
public long projectId()Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-