Record Class Response
java.lang.Object
java.lang.Record
com.thirtysevenaudits.auditor.Response
-
Constructor Summary
ConstructorsConstructorDescriptionResponse(double version, Auditor auditor, CheckStatus status, Instant date, String message, UUID groupId, List<Check> checks) Creates an instance of aResponserecord class.Response(Auditor auditor, CheckStatus status, Instant date, String message, UUID groupId, List<Check> checks) -
Method Summary
Modifier and TypeMethodDescriptionauditor()Returns the value of theauditorrecord component.checks()Returns the value of thechecksrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.doubleversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Response
-
Response
-
Response
public Response(double version, Auditor auditor, CheckStatus status, Instant date, String message, UUID groupId, List<Check> checks) Creates an instance of aResponserecord class.- Parameters:
version- the value for theversionrecord componentauditor- the value for theauditorrecord componentstatus- the value for thestatusrecord componentdate- the value for thedaterecord componentmessage- the value for themessagerecord componentgroupId- the value for thegroupIdrecord componentchecks- the value for thechecksrecord 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. -
version
public double version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
auditor
Returns the value of theauditorrecord component.- Returns:
- the value of the
auditorrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
checks
-