Record Class TodoResponse
java.lang.Object
java.lang.Record
be.appify.prefab.example.todo.infrastructure.http.TodoResponse
-
Constructor Summary
ConstructorsConstructorDescriptionTodoResponse(String id, long version, String description, Boolean done, Instant created) Creates an instance of aTodoResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.Returns the value of thedescriptionrecord component.done()Returns the value of thedonerecord component.final booleanIndicates whether some other object is "equal to" this one.static TodoResponsefinal inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
TodoResponse
Creates an instance of aTodoResponserecord class.- Parameters:
id- the value for theidrecord componentversion- the value for theversionrecord componentdescription- the value for thedescriptionrecord componentdone- the value for thedonerecord componentcreated- the value for thecreatedrecord component
-
-
Method Details
-
from
-
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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
done
Returns the value of thedonerecord component.- Returns:
- the value of the
donerecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-