public static final class Annotation.Note
extends java.lang.Object
Represents a note for a contact in the roster (roster item).
Constructor and Description |
---|
Note(java.lang.String note,
Jid jid)
Creates a roster note.
|
Note(java.lang.String note,
Jid jid,
java.time.OffsetDateTime creationDate,
java.time.OffsetDateTime modificationDate)
Creates a roster note.
|
Modifier and Type | Method and Description |
---|---|
java.time.OffsetDateTime |
getCreationDate()
Gets the creation date.
|
Jid |
getJid()
Gets the JID of the contact (roster item).
|
java.time.OffsetDateTime |
getModificationDate()
Gets the modification date.
|
java.lang.String |
getValue()
Gets the value of the note.
|
java.lang.String |
toString() |
public Note(java.lang.String note, Jid jid)
Creates a roster note.
note
- The note.jid
- The ‘jid’ attribute of the <note/>
element SHOULD be used without a resource.public Note(java.lang.String note, Jid jid, java.time.OffsetDateTime creationDate, java.time.OffsetDateTime modificationDate)
Creates a roster note.
note
- The note.jid
- The JID of the contact.creationDate
- The creation date (optional).modificationDate
- The modification date (optional).public final java.lang.String getValue()
Gets the value of the note.
public final java.time.OffsetDateTime getModificationDate()
Gets the modification date.
public final java.time.OffsetDateTime getCreationDate()
Gets the creation date.
public final Jid getJid()
Gets the JID of the contact (roster item).
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.