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 String
The field for theaccountNumber
record component.private final int
The field for theects
record component.private final String
The field for thefullName
record component. -
Constructor Summary
ConstructorsConstructorDescriptionAccountHeading
(String accountNumber, String fullName, int ects) Creates an instance of aAccountHeading
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountNumber
record component.int
ects()
Returns the value of theects
record component.final boolean
Indicates whether some other object is "equal to" this one.fullName()
Returns the value of thefullName
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
accountNumber
The field for theaccountNumber
record component. -
fullName
-
ects
private final int ectsThe field for theects
record component.
-
-
Constructor Details
-
AccountHeading
Creates an instance of aAccountHeading
record class.- Parameters:
accountNumber
- the value for theaccountNumber
record componentfullName
- the value for thefullName
record componentects
- the value for theects
record 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 theaccountNumber
record component.- Returns:
- the value of the
accountNumber
record component
-
fullName
-
ects
-