Record Class Loginresultat

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

public record Loginresultat(boolean suksess, String feilmelding, boolean authorized, String originalRequestUrl, String brukernavn) extends Record
  • Nested Class Summary

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

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the authorized record component.
    private final String
    The field for the brukernavn record component.
    private final String
    The field for the feilmelding record component.
    private final String
    The field for the originalRequestUrl record component.
    private final boolean
    The field for the suksess record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Loginresultat(boolean suksess, String feilmelding, boolean authorized, String originalRequestUrl, String brukernavn)
    Creates an instance of a Loginresultat record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the authorized record component.
    Returns the value of the brukernavn record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the feilmelding record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the originalRequestUrl record component.
    boolean
    Returns the value of the suksess 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

    • suksess

      private final boolean suksess
      The field for the suksess record component.
    • feilmelding

      private final String feilmelding
      The field for the feilmelding record component.
    • authorized

      private final boolean authorized
      The field for the authorized record component.
    • originalRequestUrl

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

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

    • Loginresultat

      public Loginresultat(boolean suksess, String feilmelding, boolean authorized, String originalRequestUrl, String brukernavn)
      Creates an instance of a Loginresultat record class.
      Parameters:
      suksess - the value for the suksess record component
      feilmelding - the value for the feilmelding record component
      authorized - the value for the authorized record component
      originalRequestUrl - the value for the originalRequestUrl record component
      brukernavn - the value for the brukernavn record component
  • Method Details

    • with

      public static Loginresultat.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.
    • suksess

      public boolean suksess()
      Returns the value of the suksess record component.
      Returns:
      the value of the suksess record component
    • feilmelding

      public String feilmelding()
      Returns the value of the feilmelding record component.
      Returns:
      the value of the feilmelding record component
    • authorized

      public boolean authorized()
      Returns the value of the authorized record component.
      Returns:
      the value of the authorized record component
    • originalRequestUrl

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

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