Package no.priv.bang.handlereg.services
Record Class Butikk
java.lang.Object
java.lang.Record
no.priv.bang.handlereg.services.Butikk
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thebutikknavnrecord component.private final intThe field for thegrupperecord component.private final intThe field for therekkefolgerecord component.private final intThe field for thestoreIdrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebutikknavnrecord component.final booleanIndicates whether some other object is "equal to" this one.intgruppe()Returns the value of thegrupperecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of therekkefolgerecord component.intstoreId()Returns the value of thestoreIdrecord component.final StringtoString()Returns a string representation of this record class.static Butikk.Builderwith()static Butikk.Builder
-
Field Details
-
storeId
private final int storeIdThe field for thestoreIdrecord component. -
gruppe
private final int gruppeThe field for thegrupperecord component. -
rekkefolge
private final int rekkefolgeThe field for therekkefolgerecord component.
-
-
Constructor Details
-
Butikk
Creates an instance of aButikkrecord class.- Parameters:
storeId- the value for thestoreIdrecord componentbutikknavn- the value for thebutikknavnrecord componentgruppe- the value for thegrupperecord componentrekkefolge- the value for therekkefolgerecord component
-
-
Method Details
-
with
-
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 '=='. -
storeId
public int storeId()Returns the value of thestoreIdrecord component.- Returns:
- the value of the
storeIdrecord component
-
gruppe
public int gruppe()Returns the value of thegrupperecord component.- Returns:
- the value of the
grupperecord component
-
rekkefolge
public int rekkefolge()Returns the value of therekkefolgerecord component.- Returns:
- the value of the
rekkefolgerecord component
-