Package no.priv.bang.handlereg.services
Record Class Loginresultat
java.lang.Object
java.lang.Record
no.priv.bang.handlereg.services.Loginresultat
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theauthorizedrecord component.private final StringThe field for thebrukernavnrecord component.private final StringThe field for thefeilmeldingrecord component.private final StringThe field for theoriginalRequestUrlrecord component.private final booleanThe field for thesuksessrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLoginresultat(boolean suksess, String feilmelding, boolean authorized, String originalRequestUrl, String brukernavn) Creates an instance of aLoginresultatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theauthorizedrecord component.Returns the value of thebrukernavnrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeilmeldingrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginalRequestUrlrecord component.booleansuksess()Returns the value of thesuksessrecord component.final StringtoString()Returns a string representation of this record class.static Loginresultat.Builderwith()
-
Field Details
-
suksess
private final boolean suksessThe field for thesuksessrecord component. -
feilmelding
The field for thefeilmeldingrecord component. -
authorized
private final boolean authorizedThe field for theauthorizedrecord component. -
originalRequestUrl
The field for theoriginalRequestUrlrecord component.
-
-
Constructor Details
-
Loginresultat
public Loginresultat(boolean suksess, String feilmelding, boolean authorized, String originalRequestUrl, String brukernavn) Creates an instance of aLoginresultatrecord class.- Parameters:
suksess- the value for thesuksessrecord componentfeilmelding- the value for thefeilmeldingrecord componentauthorized- the value for theauthorizedrecord componentoriginalRequestUrl- the value for theoriginalRequestUrlrecord componentbrukernavn- the value for thebrukernavnrecord 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 '=='. -
suksess
public boolean suksess()Returns the value of thesuksessrecord component.- Returns:
- the value of the
suksessrecord component
-
feilmelding
Returns the value of thefeilmeldingrecord component.- Returns:
- the value of the
feilmeldingrecord component
-
authorized
public boolean authorized()Returns the value of theauthorizedrecord component.- Returns:
- the value of the
authorizedrecord component
-
originalRequestUrl
Returns the value of theoriginalRequestUrlrecord component.- Returns:
- the value of the
originalRequestUrlrecord component
-