Record Class Oversikt

java.lang.Object
java.lang.Record
no.priv.bang.handlereg.services.Oversikt

public record Oversikt(int accountid, String brukernavn, String email, String fornavn, String etternavn, double balanse, double sumPreviousMonth, double sumThisMonth, double lastTransactionAmount, int lastTransactionStore) extends Record
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the accountid record component.
    private final double
    The field for the balanse record component.
    private final String
    The field for the brukernavn record component.
    private final String
    The field for the email record component.
    private final String
    The field for the etternavn record component.
    private final String
    The field for the fornavn record component.
    private final double
    The field for the lastTransactionAmount record component.
    private final int
    The field for the lastTransactionStore record component.
    private final double
    The field for the sumPreviousMonth record component.
    private final double
    The field for the sumThisMonth record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 a Oversikt record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the accountid record component.
    double
    Returns the value of the balanse record component.
    Returns the value of the brukernavn record component.
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the etternavn record component.
    Returns the value of the fornavn record component.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the lastTransactionAmount record component.
    int
    Returns the value of the lastTransactionStore record component.
    double
    Returns the value of the sumPreviousMonth record component.
    double
    Returns the value of the sumThisMonth record component.
    final String
    Returns a string representation of this record class.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • accountid

      private final int accountid
      The field for the accountid record component.
    • brukernavn

      private final String brukernavn
      The field for the brukernavn record component.
    • email

      private final String email
      The field for the email record component.
    • fornavn

      private final String fornavn
      The field for the fornavn record component.
    • etternavn

      private final String etternavn
      The field for the etternavn record component.
    • balanse

      private final double balanse
      The field for the balanse record component.
    • sumPreviousMonth

      private final double sumPreviousMonth
      The field for the sumPreviousMonth record component.
    • sumThisMonth

      private final double sumThisMonth
      The field for the sumThisMonth record component.
    • lastTransactionAmount

      private final double lastTransactionAmount
      The field for the lastTransactionAmount record component.
    • lastTransactionStore

      private final int lastTransactionStore
      The field for the lastTransactionStore record 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 a Oversikt record class.
      Parameters:
      accountid - the value for the accountid record component
      brukernavn - the value for the brukernavn record component
      email - the value for the email record component
      fornavn - the value for the fornavn record component
      etternavn - the value for the etternavn record component
      balanse - the value for the balanse record component
      sumPreviousMonth - the value for the sumPreviousMonth record component
      sumThisMonth - the value for the sumThisMonth record component
      lastTransactionAmount - the value for the lastTransactionAmount record component
      lastTransactionStore - the value for the lastTransactionStore record component
  • Method Details

    • with

      public static Oversikt.Builder with()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • accountid

      public int accountid()
      Returns the value of the accountid record component.
      Returns:
      the value of the accountid record component
    • brukernavn

      public String brukernavn()
      Returns the value of the brukernavn record component.
      Returns:
      the value of the brukernavn record component
    • email

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • fornavn

      public String fornavn()
      Returns the value of the fornavn record component.
      Returns:
      the value of the fornavn record component
    • etternavn

      public String etternavn()
      Returns the value of the etternavn record component.
      Returns:
      the value of the etternavn record component
    • balanse

      public double balanse()
      Returns the value of the balanse record component.
      Returns:
      the value of the balanse record component
    • sumPreviousMonth

      public double sumPreviousMonth()
      Returns the value of the sumPreviousMonth record component.
      Returns:
      the value of the sumPreviousMonth record component
    • sumThisMonth

      public double sumThisMonth()
      Returns the value of the sumThisMonth record component.
      Returns:
      the value of the sumThisMonth record component
    • lastTransactionAmount

      public double lastTransactionAmount()
      Returns the value of the lastTransactionAmount record component.
      Returns:
      the value of the lastTransactionAmount record component
    • lastTransactionStore

      public int lastTransactionStore()
      Returns the value of the lastTransactionStore record component.
      Returns:
      the value of the lastTransactionStore record component