Class NestedPolicy

  • All Implemented Interfaces:
    Iterable<AssertionSet>

    public final class NestedPolicy
    extends Policy
    A special policy implementation that assures that only no or single policy alternative is possible within this type of policy.
    Author:
    Marek Potociar
    • Method Detail

      • getAssertionSet

        public AssertionSet getAssertionSet()
        Returns the AssertionSet instance representing a single policy alterantive held wihtin this nested policy object. If the nested policy represents a policy with no alternatives (i.e. nothing is allowed) the method returns null.
        Returns:
        nested policy alternative represented by AssertionSet object. May return null in case the nested policy represents 'nothing allowed' policy.
      • equals

        public boolean equals​(Object obj)
        An Object.equals(Object obj) method override.
        Overrides:
        equals in class Policy
      • hashCode

        public int hashCode()
        Description copied from class: Policy
        An Object.hashCode() method override.
        Overrides:
        hashCode in class Policy
      • toString

        public String toString()
        An Object.toString() method override.
        Overrides:
        toString in class Policy