Record Class NyHandling

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

public record NyHandling(String username, int accountid, int storeId, double belop, Date handletidspunkt) 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 belop record component.
    private final Date
    The field for the handletidspunkt record component.
    private final int
    The field for the storeId record component.
    private final String
    The field for the username record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NyHandling(String username, int accountid, int storeId, double belop, Date handletidspunkt)
    Creates an instance of a NyHandling record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the accountid record component.
    double
    Returns the value of the belop record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the handletidspunkt record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the storeId record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the username record component.
     

    Methods inherited from class java.lang.Object

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

    • username

      private final String username
      The field for the username record component.
    • accountid

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

      private final int storeId
      The field for the storeId record component.
    • belop

      private final double belop
      The field for the belop record component.
    • handletidspunkt

      private final Date handletidspunkt
      The field for the handletidspunkt record component.
  • Constructor Details

    • NyHandling

      public NyHandling(String username, int accountid, int storeId, double belop, Date handletidspunkt)
      Creates an instance of a NyHandling record class.
      Parameters:
      username - the value for the username record component
      accountid - the value for the accountid record component
      storeId - the value for the storeId record component
      belop - the value for the belop record component
      handletidspunkt - the value for the handletidspunkt record component
  • Method Details

    • with

      public static NyHandling.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.
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • accountid

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

      public int storeId()
      Returns the value of the storeId record component.
      Returns:
      the value of the storeId record component
    • belop

      public double belop()
      Returns the value of the belop record component.
      Returns:
      the value of the belop record component
    • handletidspunkt

      public Date handletidspunkt()
      Returns the value of the handletidspunkt record component.
      Returns:
      the value of the handletidspunkt record component