1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 00:02:06 +01:00

Add @see RFC for Presence's priority element

This commit is contained in:
Florian Schmaus 2016-05-21 12:39:37 +02:00
parent fa10a01831
commit f4ce4b6e77

View file

@ -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. * Returns the priority of the presence, or Integer.MIN_VALUE if no priority has been set.
* *
* @return the priority. * @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() { public int getPriority() {
return priority; return priority;
@ -189,6 +190,7 @@ public final class Presence extends Stanza implements TypedCloneable<Presence> {
* *
* @param priority the priority of the presence. * @param priority the priority of the presence.
* @throws IllegalArgumentException if the priority is outside the valid range. * @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) { public void setPriority(int priority) {
if (priority < -128 || priority > 127) { if (priority < -128 || priority > 127) {