mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +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.
|
* 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) {
|
||||||
|
|
Loading…
Reference in a new issue