All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jivesoftware.openfire.group.GroupAwareList Maven / Gradle / Ivy

The newest version!
package org.jivesoftware.openfire.group;

import java.util.List;
import java.util.Set;

/**
 * This list specifies additional methods that understand groups among 
 * the items in the list.
 * 
 * @author Tom Evans
 */
public interface GroupAwareList extends List {

    /**
     * Returns true if the list contains the given JID. If the JID
     * is not found explicitly, search the list for groups and look 
     * for the JID in each of the corresponding groups.
     * 
     * @param o The target, presumably a JID
     * @return True if the target is in the list, or in any groups in the list
     */
    boolean includes(Object o);

    /**
     * Returns the groups that are implied (resolvable) from the items in the list.
     * 
     * @return A Set containing the groups in the list
     */
    Set getGroups();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy