mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Make RosterStore.getEntries() return a List
instead of an Collection.
This commit is contained in:
parent
86548b87bb
commit
d7ac9481c7
1 changed files with 6 additions and 3 deletions
|
@ -17,6 +17,7 @@
|
||||||
package org.jivesoftware.smack.roster.rosterstore;
|
package org.jivesoftware.smack.roster.rosterstore;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.jivesoftware.smack.roster.packet.RosterPacket;
|
import org.jivesoftware.smack.roster.packet.RosterPacket;
|
||||||
import org.jxmpp.jid.Jid;
|
import org.jxmpp.jid.Jid;
|
||||||
|
@ -29,10 +30,12 @@ import org.jxmpp.jid.Jid;
|
||||||
public interface RosterStore {
|
public interface RosterStore {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method returns a collection of all roster items contained in this store.
|
* This method returns a list of all roster items contained in this store. If there was an error while loading the store, then <code>null</code> is returned.
|
||||||
* @return List of {@link org.jivesoftware.smack.roster.RosterEntry}
|
*
|
||||||
|
* @return List of {@link org.jivesoftware.smack.roster.RosterEntry} or <code>null</code>.
|
||||||
*/
|
*/
|
||||||
public Collection<RosterPacket.Item> getEntries();
|
public List<RosterPacket.Item> getEntries();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method returns the roster item in this store for the given JID.
|
* This method returns the roster item in this store for the given JID.
|
||||||
* @param bareJid The bare JID of the RosterEntry
|
* @param bareJid The bare JID of the RosterEntry
|
||||||
|
|
Loading…
Reference in a new issue