Package no.priv.bang.handlereg.services
Record Class Favoritt
java.lang.Object
java.lang.Record
no.priv.bang.handlereg.services.Favoritt
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theaccountidrecord component.private final intThe field for thefavouriteidrecord component.private final intThe field for therekkefolgerecord component.private final ButikkThe field for thestorerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccountidrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefavouriteidrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of therekkefolgerecord component.store()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.static Favoritt.Builderwith()
-
Field Details
-
favouriteid
private final int favouriteidThe field for thefavouriteidrecord component. -
accountid
private final int accountidThe field for theaccountidrecord component. -
store
The field for thestorerecord component. -
rekkefolge
private final int rekkefolgeThe field for therekkefolgerecord component.
-
-
Constructor Details
-
Favoritt
Creates an instance of aFavorittrecord class.- Parameters:
favouriteid- the value for thefavouriteidrecord componentaccountid- the value for theaccountidrecord componentstore- the value for thestorerecord componentrekkefolge- the value for therekkefolgerecord 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 '=='. -
favouriteid
public int favouriteid()Returns the value of thefavouriteidrecord component.- Returns:
- the value of the
favouriteidrecord component
-
accountid
public int accountid()Returns the value of theaccountidrecord component.- Returns:
- the value of the
accountidrecord component
-
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-
rekkefolge
public int rekkefolge()Returns the value of therekkefolgerecord component.- Returns:
- the value of the
rekkefolgerecord component
-