Class QualifiedCollection


  • public class QualifiedCollection
    extends Object
    Class that wraps a collection and a boolean flag Used to represent ACI target attributes and ACI permissions. The boolean flag indicates whether the target attributes ( or the permissions ) are exclusive or inclusive
    • Constructor Detail

      • QualifiedCollection

        public QualifiedCollection​(Collection collection,
                                   boolean exclusive)
        Constructor
        Parameters:
        collection - the collections of values.
        exclusive - the boolean flag indicating whether the values are excluisive or inclusive.
    • Method Detail

      • equals

        public boolean equals​(Object object)
        Compares whether the passed object is equal to this object semantically. The objects are considered equal if they have the same collection of values, and the same value of exclusive flag
        Overrides:
        equals in class Object
        Parameters:
        object - the object that is to be compared for equality
        Returns:
        true if the passed object is equal to this object, false otherwise
      • clone

        public Object clone()
        Clones this object
        Overrides:
        clone in class Object
        Returns:
        the cloned object
      • setCollection

        public void setCollection​(Collection collection)
        Sets the collection of values
        Parameters:
        collection - the collection of values
      • getCollection

        public Collection getCollection()
        Gets the collection of values
        Returns:
        the collection of values
      • setExclusive

        public void setExclusive​(boolean exclusive)
        Sets the exclusive flag
        Parameters:
        exclusive - value of exclusive flag
      • isExclusive

        public boolean isExclusive()
        Gets the value of the exclusive flag
        Returns:
        the value of the exclusive flag