Record Class AccountHeading
java.lang.Object
java.lang.Record
page.codeberg.friedolyn.client.parser.AccountHeading
- Record Components:
accountNumber- Usually just a capital letter, e.g. "A" or "B".fullName- The full name of the account, e.g. "Konto B: Module zur Vermittlung von mathematischen und naturwissenschaftlich-technischen Grundlagen".ects- The number of ECTS that the account's modules are worth in total.
The information about a specific account in the grades table.


-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theaccountNumberrecord component.private final intThe field for theectsrecord component.private final StringThe field for thefullNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAccountHeading(String accountNumber, String fullName, int ects) Creates an instance of aAccountHeadingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountNumberrecord component.intects()Returns the value of theectsrecord component.final booleanIndicates whether some other object is "equal to" this one.fullName()Returns the value of thefullNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
accountNumber
The field for theaccountNumberrecord component. -
fullName
-
ects
private final int ectsThe field for theectsrecord component.
-
-
Constructor Details
-
AccountHeading
Creates an instance of aAccountHeadingrecord class.- Parameters:
accountNumber- the value for theaccountNumberrecord componentfullName- the value for thefullNamerecord componentects- the value for theectsrecord 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 '=='. -
accountNumber
Returns the value of theaccountNumberrecord component.- Returns:
- the value of the
accountNumberrecord component
-
fullName
-
ects
-