Class Annotation.Note

  • All Implemented Interfaces:
    Addressable
    Enclosing class:
    Annotation

    public static final class Annotation.Note
    extends Object
    implements Addressable
    Represents a note for a contact in the roster (roster item).
    • Constructor Detail

      • Note

        public Note​(String note,
                    Jid jid)
        Creates a roster note.
        Parameters:
        note - The note.
        jid - The 'jid' attribute of the <note/> element SHOULD be used without a resource.
      • Note

        public Note​(String note,
                    Jid jid,
                    OffsetDateTime creationDate,
                    OffsetDateTime modificationDate)
        Creates a roster note.
        Parameters:
        note - The note.
        jid - The JID of the contact.
        creationDate - The creation date (optional).
        modificationDate - The modification date (optional).
    • Method Detail

      • getValue

        public final String getValue()
        Gets the value of the note.
        Returns:
        The value.
      • getModificationDate

        public final OffsetDateTime getModificationDate()
        Gets the modification date.
        Returns:
        The modification date.
      • getCreationDate

        public final OffsetDateTime getCreationDate()
        Gets the creation date.
        Returns:
        The creation date.
      • getJid

        public final Jid getJid()
        Gets the JID of the contact (roster item).
        Specified by:
        getJid in interface Addressable
        Returns:
        The JID.