Package no.priv.bang.handlereg.services
Record Class Oversikt
java.lang.Object
java.lang.Record
no.priv.bang.handlereg.services.Oversikt
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theaccountidrecord component.private final doubleThe field for thebalanserecord component.private final StringThe field for thebrukernavnrecord component.private final StringThe field for theemailrecord component.private final StringThe field for theetternavnrecord component.private final StringThe field for thefornavnrecord component.private final doubleThe field for thelastTransactionAmountrecord component.private final intThe field for thelastTransactionStorerecord component.private final doubleThe field for thesumPreviousMonthrecord component.private final doubleThe field for thesumThisMonthrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccountidrecord component.doublebalanse()Returns the value of thebalanserecord component.Returns the value of thebrukernavnrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theetternavnrecord component.fornavn()Returns the value of thefornavnrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelastTransactionAmountrecord component.intReturns the value of thelastTransactionStorerecord component.doubleReturns the value of thesumPreviousMonthrecord component.doubleReturns the value of thesumThisMonthrecord component.final StringtoString()Returns a string representation of this record class.static Oversikt.Builderwith()
-
Field Details
-
accountid
private final int accountidThe field for theaccountidrecord component. -
email
The field for theemailrecord component. -
balanse
private final double balanseThe field for thebalanserecord component. -
sumPreviousMonth
private final double sumPreviousMonthThe field for thesumPreviousMonthrecord component. -
sumThisMonth
private final double sumThisMonthThe field for thesumThisMonthrecord component. -
lastTransactionAmount
private final double lastTransactionAmountThe field for thelastTransactionAmountrecord component. -
lastTransactionStore
private final int lastTransactionStoreThe field for thelastTransactionStorerecord component.
-
-
Constructor Details
-
Oversikt
public Oversikt(int accountid, String brukernavn, String email, String fornavn, String etternavn, double balanse, double sumPreviousMonth, double sumThisMonth, double lastTransactionAmount, int lastTransactionStore) Creates an instance of aOversiktrecord class.- Parameters:
accountid- the value for theaccountidrecord componentbrukernavn- the value for thebrukernavnrecord componentemail- the value for theemailrecord componentfornavn- the value for thefornavnrecord componentetternavn- the value for theetternavnrecord componentbalanse- the value for thebalanserecord componentsumPreviousMonth- the value for thesumPreviousMonthrecord componentsumThisMonth- the value for thesumThisMonthrecord componentlastTransactionAmount- the value for thelastTransactionAmountrecord componentlastTransactionStore- the value for thelastTransactionStorerecord component
-
-
Method Details
-
with
-
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 '=='. -
accountid
public int accountid()Returns the value of theaccountidrecord component.- Returns:
- the value of the
accountidrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
balanse
public double balanse()Returns the value of thebalanserecord component.- Returns:
- the value of the
balanserecord component
-
sumPreviousMonth
public double sumPreviousMonth()Returns the value of thesumPreviousMonthrecord component.- Returns:
- the value of the
sumPreviousMonthrecord component
-
sumThisMonth
public double sumThisMonth()Returns the value of thesumThisMonthrecord component.- Returns:
- the value of the
sumThisMonthrecord component
-
lastTransactionAmount
public double lastTransactionAmount()Returns the value of thelastTransactionAmountrecord component.- Returns:
- the value of the
lastTransactionAmountrecord component
-
lastTransactionStore
public int lastTransactionStore()Returns the value of thelastTransactionStorerecord component.- Returns:
- the value of the
lastTransactionStorerecord component
-