Record Class Disclaimer
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.tyler.ecfcodes.Disclaimer
- All Implemented Interfaces:
NameAndCode
public record Disclaimer(String code, String name, int listorder, String requirementText)
extends Record
implements NameAndCode
-
Constructor Summary
ConstructorsConstructorDescriptionDisclaimer(String code, String name, int listorder, String requirementText) Creates an instance of aDisclaimerrecord class.Disclaimer(String code, String name, String listOrder, String requirementText) -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.static Stringfinal inthashCode()Returns a hash code value for this object.intReturns the value of thelistorderrecord component.name()Returns the value of thenamerecord component.Returns the value of therequirementTextrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.suffolk.litlab.efsp.ecfcodes.NameAndCode
getCode, getName
-
Constructor Details
-
Disclaimer
Creates an instance of aDisclaimerrecord class.- Parameters:
code- the value for thecoderecord componentname- the value for thenamerecord componentlistorder- the value for thelistorderrecord componentrequirementText- the value for therequirementTextrecord component
-
Disclaimer
-
-
Method Details
-
getDisclaimerRequirements
-
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 '=='. -
code
Returns the value of thecoderecord component.- Specified by:
codein interfaceNameAndCode- Returns:
- the value of the
coderecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceNameAndCode- Returns:
- the value of the
namerecord component
-
listorder
public int listorder()Returns the value of thelistorderrecord component.- Returns:
- the value of the
listorderrecord component
-
requirementText
Returns the value of therequirementTextrecord component.- Returns:
- the value of the
requirementTextrecord component
-