public final class Roster extends Object
Rosters are managed using
<iq/>stanzas (see Section 8.2.3 of [XMPP-CORE]), specifically by means of a<query/>child element qualified by the 'jabber:iq:roster' namespace. The detailed syntax and semantics are defined in the following sections.
This class is immutable.
| Constructor and Description |
|---|
Roster() |
Roster(Collection<Contact> contacts) |
Roster(Collection<Contact> contacts,
String version) |
Roster(Contact... contacts) |
Roster(String ver) |
| Modifier and Type | Method and Description |
|---|---|
List<Contact> |
getContacts()
Gets the contacts.
|
String |
getVersion()
Gets the roster version.
|
String |
toString() |
public Roster()
public Roster(String ver)
public Roster(Collection<Contact> contacts)
public Roster(Collection<Contact> contacts, String version)
public Roster(Contact... contacts)
Copyright © 2014–2016 XMPP.rocks. All rights reserved.