Class ConcurrentGroupMap<K,​V>

    • Constructor Detail

      • ConcurrentGroupMap

        public ConcurrentGroupMap()
    • Method Detail

      • includesKey

        public boolean includesKey​(Object key)
        Returns true if the key list contains the given JID. If the JID is not found in the key list (exact match), search the key list for groups and look for the JID in each of the corresponding groups (implied match).
        Specified by:
        includesKey in interface GroupAwareMap<K,​V>
        Parameters:
        key - The target, presumably a JID
        Returns:
        True if the target is in the key list, or in any groups in the key list
      • includesValue

        public boolean includesValue​(Object value)
        Returns true if the map has an entry value matching the given JID. If the JID is not found in the value set (exact match), search the value set for groups and look for the JID in each of the corresponding groups (implied match).
        Specified by:
        includesValue in interface GroupAwareMap<K,​V>
        Parameters:
        value - The target, presumably a JID
        Returns:
        True if the target is in the value set, or in any groups in the value set
      • getGroupsFromKeys

        public Set<Group> getGroupsFromKeys()
        Returns the groups that are implied (resolvable) from the keys in the map.
        Specified by:
        getGroupsFromKeys in interface GroupAwareMap<K,​V>
        Returns:
        A Set containing the groups among the keys
      • getGroupsFromValues

        public Set<Group> getGroupsFromValues()
        Returns the groups that are implied (resolvable) from the values in the map.
        Specified by:
        getGroupsFromValues in interface GroupAwareMap<K,​V>
        Returns:
        A Set containing the groups among the values