Package io.meeds.mcp.server.tool.model
Record Class NotificationModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.NotificationModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedDaterecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.Returns the value of theparametersrecord component.plugin()Returns the value of thepluginrecord component.booleanread()Returns the value of thereadrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NotificationModel
public NotificationModel(String id, String title, String plugin, String message, String from, boolean read, String createdDate, Map<String, String> parameters) Creates an instance of aNotificationModelrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentplugin- the value for thepluginrecord componentmessage- the value for themessagerecord componentfrom- the value for thefromrecord componentread- the value for thereadrecord componentcreatedDate- the value for thecreatedDaterecord componentparameters- the value for theparametersrecord component
-
-
Method Details
-
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
plugin
Returns the value of thepluginrecord component.- Returns:
- the value of the
pluginrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
read
public boolean read()Returns the value of thereadrecord component.- Returns:
- the value of the
readrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-