Package se.fortnox.changesets
Record Class Changeset
java.lang.Object
java.lang.Record
se.fortnox.changesets.Changeset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Changesetfinal booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.message()Returns the value of themessagerecord component.Returns the value of thepackageNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Changeset
Creates an instance of aChangesetrecord class.- Parameters:
packageName- the value for thepackageNamerecord componentlevel- the value for thelevelrecord componentmessage- the value for themessagerecord componentfile- the value for thefilerecord component
-
-
Method Details
-
blank
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-