tigase.jaxmpp.android.roster

## Class AndroidRosterStore

- java.lang.Object
- - tigase.jaxmpp.core.client.xmpp.modules.roster.RosterStore
  - - tigase.jaxmpp.android.roster.AndroidRosterStore

- All Implemented Interfaces:
    Property

      public class AndroidRosterStore
      extends RosterStore

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class tigase.jaxmpp.core.client.xmpp.modules.roster.RosterStore

      `RosterStore.Predicate`

  - ### Field Summary

    - ### Fields inherited from class tigase.jaxmpp.core.client.xmpp.modules.roster.RosterStore

      `sessionObject`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AndroidRosterStore(RosterProvider provider)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected Set<String>` | `addItem(RosterItem item)`
    `protected Set<String>` | `calculateModifiedGroups(HashSet<String> groupsOld)`
    `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)`

    - ### Methods inherited from class tigase.jaxmpp.core.client.xmpp.modules.roster.RosterStore

      `add, add, add, clear, getAll, getPropertyClass, remove, setSessionObject, update`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AndroidRosterStore

          public AndroidRosterStore(RosterProvider provider)

  - ### Method Detail

    - #### addItem

          protected Set<String> addItem(RosterItem item)

      Specified by:
        `addItem` in class `RosterStore`

    - #### calculateModifiedGroups

          protected Set<String> calculateModifiedGroups(HashSet<String> groupsOld)

      Specified by:
        `calculateModifiedGroups` in class `RosterStore`

    - #### get

          public RosterItem get(BareJID jid)

      Description copied from class: `RosterStore`
      Returns RosterItem of given bare JID.
      Specified by:
        `get` in class `RosterStore`
      Parameters:
        `jid` - bare JID.
      Returns:
        roster item.

    - #### getAll

          public List<RosterItem> getAll(RosterStore.Predicate predicate)

      Description copied from class: `RosterStore`
      Returns all roster items selected by selector.
      Specified by:
        `getAll` in class `RosterStore`
      Parameters:
        `predicate` - selector.
      Returns:
        all matched roster items.

    - #### getCount

          public int getCount()

      Description copied from class: `RosterStore`
      Returns number of roster items in storage.
      Specified by:
        `getCount` in class `RosterStore`
      Returns:
        number of roster items in storage.

    - #### getGroups

          public Collection<? extends String> getGroups()

      Description copied from class: `RosterStore`
      Get all known groups of buddies.
      Specified by:
        `getGroups` in class `RosterStore`
      Returns:
        collection of group names.

    - #### removeAll

          public void removeAll()

      Specified by:
        `removeAll` in class `RosterStore`

    - #### removeItem

          protected void removeItem(BareJID jid)

      Specified by:
        `removeItem` in class `RosterStore`

Copyright © 2006–2016 Tigase. All rights reserved.