Record Class ChangelogDto
java.lang.Object
java.lang.Record
io.datarouter.instrumentation.changelog.ChangelogDto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of thechangelogTyperecord component.comment()Returns the value of thecommentrecord component.longdateMs()Returns the value of thedateMsrecord component.final booleanIndicates whether some other object is "equal to" this one.longfinal inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.note()Returns the value of thenoterecord component.Returns the value of theserviceNamerecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
ChangelogDto
public ChangelogDto(String serviceName, String changelogType, String name, long dateMs, String action, String username, String comment, String note) Creates an instance of aChangelogDtorecord class.- Parameters:
serviceName- the value for theserviceNamerecord componentchangelogType- the value for thechangelogTyperecord componentname- the value for thenamerecord componentdateMs- the value for thedateMsrecord componentaction- the value for theactionrecord componentusername- the value for theusernamerecord componentcomment- the value for thecommentrecord componentnote- the value for thenoterecord component
-
-
Method Details
-
getReversedDateMs
public long getReversedDateMs() -
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 '=='. -
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
changelogType
Returns the value of thechangelogTyperecord component.- Returns:
- the value of the
changelogTyperecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
dateMs
public long dateMs()Returns the value of thedateMsrecord component.- Returns:
- the value of the
dateMsrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-