mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
Add @see RFC for Presence's priority element
This commit is contained in:
parent
fa10a01831
commit
f4ce4b6e77
1 changed files with 2 additions and 0 deletions
|
@ -179,6 +179,7 @@ public final class Presence extends Stanza implements TypedCloneable<Presence> {
|
|||
* Returns the priority of the presence, or Integer.MIN_VALUE if no priority has been set.
|
||||
*
|
||||
* @return the priority.
|
||||
* @see <a href="https://tools.ietf.org/html/rfc6121#section-4.7.2.3">RFC 6121 § 4.7.2.3. Priority Element</a>
|
||||
*/
|
||||
public int getPriority() {
|
||||
return priority;
|
||||
|
@ -189,6 +190,7 @@ public final class Presence extends Stanza implements TypedCloneable<Presence> {
|
|||
*
|
||||
* @param priority the priority of the presence.
|
||||
* @throws IllegalArgumentException if the priority is outside the valid range.
|
||||
* @see <a href="https://tools.ietf.org/html/rfc6121#section-4.7.2.3">RFC 6121 § 4.7.2.3. Priority Element</a>
|
||||
*/
|
||||
public void setPriority(int priority) {
|
||||
if (priority < -128 || priority > 127) {
|
||||
|
|
Loading…
Reference in a new issue