public class DefaultRosterStore extends RosterStore
RosterStore.Predicate
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
groups |
protected Map<BareJID,RosterItem> |
roster |
sessionObject
Constructor and Description |
---|
DefaultRosterStore() |
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
addItem(RosterItem item) |
protected Set<String> |
calculateModifiedGroups(HashSet<String> groupsOld) |
protected int |
createItemId(BareJID jid) |
RosterItem |
get(BareJID jid)
Returns RosterItem of given bare JID.
|
List<RosterItem> |
getAll(RosterStore.Predicate predicate)
Returns all roster items selected by selector.
|
int |
getCount()
Returns number of roster items in storage.
|
Collection<? extends String> |
getGroups()
Get all known groups of buddies.
|
void |
removeAll() |
protected void |
removeItem(BareJID jid) |
add, add, add, clear, getAll, getPropertyClass, remove, setSessionObject, update
protected final Map<BareJID,RosterItem> roster
protected Set<String> addItem(RosterItem item)
addItem
in class RosterStore
protected Set<String> calculateModifiedGroups(HashSet<String> groupsOld)
calculateModifiedGroups
in class RosterStore
protected int createItemId(BareJID jid)
public RosterItem get(BareJID jid)
get
in class RosterStore
jid
- bare JID.public List<RosterItem> getAll(RosterStore.Predicate predicate)
getAll
in class RosterStore
predicate
- selector.public int getCount()
getCount
in class RosterStore
public Collection<? extends String> getGroups()
getGroups
in class RosterStore
public void removeAll()
removeAll
in class RosterStore
protected void removeItem(BareJID jid)
removeItem
in class RosterStore
Copyright © 2006–2023 Tigase. All rights reserved.