Record Class NoteModel

java.lang.Object
java.lang.Record
io.meeds.notes.mcp.model.NoteModel

public record NoteModel(long noteId, String title, String htmlContent, String url, String createdDate, String updatedDate, boolean hasChildNotes, boolean canEdit, io.meeds.mcp.server.tool.model.UserModel author, io.meeds.mcp.server.tool.model.UserModel lastUpdater, List<NoteBreadcrumbModel> breadcrumb) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    NoteModel(long noteId, String title, String htmlContent, String url, String createdDate, String updatedDate, boolean hasChildNotes, boolean canEdit, io.meeds.mcp.server.tool.model.UserModel author, io.meeds.mcp.server.tool.model.UserModel lastUpdater, List<NoteBreadcrumbModel> breadcrumb)
    Creates an instance of a NoteModel record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.meeds.mcp.server.tool.model.UserModel
    Returns the value of the author record component.
    Returns the value of the breadcrumb record component.
    boolean
    Returns the value of the canEdit record component.
    Returns the value of the createdDate record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the hasChildNotes record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the htmlContent record component.
    io.meeds.mcp.server.tool.model.UserModel
    Returns the value of the lastUpdater record component.
    long
    Returns the value of the noteId record component.
    Returns the value of the title record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the updatedDate record component.
    url()
    Returns the value of the url record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NoteModel

      public NoteModel(long noteId, String title, String htmlContent, String url, String createdDate, String updatedDate, boolean hasChildNotes, boolean canEdit, io.meeds.mcp.server.tool.model.UserModel author, io.meeds.mcp.server.tool.model.UserModel lastUpdater, List<NoteBreadcrumbModel> breadcrumb)
      Creates an instance of a NoteModel record class.
      Parameters:
      noteId - the value for the noteId record component
      title - the value for the title record component
      htmlContent - the value for the htmlContent record component
      url - the value for the url record component
      createdDate - the value for the createdDate record component
      updatedDate - the value for the updatedDate record component
      hasChildNotes - the value for the hasChildNotes record component
      canEdit - the value for the canEdit record component
      author - the value for the author record component
      lastUpdater - the value for the lastUpdater record component
      breadcrumb - the value for the breadcrumb record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • noteId

      public long noteId()
      Returns the value of the noteId record component.
      Returns:
      the value of the noteId record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • htmlContent

      public String htmlContent()
      Returns the value of the htmlContent record component.
      Returns:
      the value of the htmlContent record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • createdDate

      public String createdDate()
      Returns the value of the createdDate record component.
      Returns:
      the value of the createdDate record component
    • updatedDate

      public String updatedDate()
      Returns the value of the updatedDate record component.
      Returns:
      the value of the updatedDate record component
    • hasChildNotes

      public boolean hasChildNotes()
      Returns the value of the hasChildNotes record component.
      Returns:
      the value of the hasChildNotes record component
    • canEdit

      public boolean canEdit()
      Returns the value of the canEdit record component.
      Returns:
      the value of the canEdit record component
    • author

      public io.meeds.mcp.server.tool.model.UserModel author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • lastUpdater

      public io.meeds.mcp.server.tool.model.UserModel lastUpdater()
      Returns the value of the lastUpdater record component.
      Returns:
      the value of the lastUpdater record component