Package no.priv.bang.handlereg.services
Record Class NyHandling
java.lang.Object
java.lang.Record
no.priv.bang.handlereg.services.NyHandling
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theaccountidrecord component.private final doubleThe field for thebeloprecord component.private final DateThe field for thehandletidspunktrecord component.private final intThe field for thestoreIdrecord component.private final StringThe field for theusernamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNyHandling(String username, int accountid, int storeId, double belop, Date handletidspunkt) Creates an instance of aNyHandlingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccountidrecord component.doublebelop()Returns the value of thebeloprecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandletidspunktrecord component.final inthashCode()Returns a hash code value for this object.intstoreId()Returns the value of thestoreIdrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.static NyHandling.Builderwith()
-
Field Details
-
username
The field for theusernamerecord component. -
accountid
private final int accountidThe field for theaccountidrecord component. -
storeId
private final int storeIdThe field for thestoreIdrecord component. -
belop
private final double belopThe field for thebeloprecord component. -
handletidspunkt
The field for thehandletidspunktrecord component.
-
-
Constructor Details
-
NyHandling
Creates an instance of aNyHandlingrecord class.- Parameters:
username- the value for theusernamerecord componentaccountid- the value for theaccountidrecord componentstoreId- the value for thestoreIdrecord componentbelop- the value for thebeloprecord componenthandletidspunkt- the value for thehandletidspunktrecord 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 '=='. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
accountid
public int accountid()Returns the value of theaccountidrecord component.- Returns:
- the value of the
accountidrecord component
-
storeId
public int storeId()Returns the value of thestoreIdrecord component.- Returns:
- the value of the
storeIdrecord component
-
belop
public double belop()Returns the value of thebeloprecord component.- Returns:
- the value of the
beloprecord component
-
handletidspunkt
Returns the value of thehandletidspunktrecord component.- Returns:
- the value of the
handletidspunktrecord component
-