Record Class ControlRequirement
java.lang.Object
java.lang.Record
org.j7m.middleware.compliance.api.ControlRequirement
- Record Components:
controlId- stable control idframework- framework containing the requirementtitle- short titledescription- safe requirement description
public record ControlRequirement(ControlId controlId, ControlFramework framework, String title, String description)
extends Record
Machine-readable compliance requirement.
-
Constructor Summary
ConstructorsConstructorDescriptionControlRequirement(ControlId controlId, ControlFramework framework, String title, String description) Creates a normalized requirement. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontrolIdrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theframeworkrecord component.final inthashCode()Returns a hash code value for this object.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ControlRequirement
public ControlRequirement(ControlId controlId, ControlFramework framework, String title, String description) Creates a normalized requirement.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
controlId
-
framework
-
title
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-