Class Groups


  • public class Groups
    extends Object
    Defines the order to validate groups during validation. with some inspiration from reference implementation
    Author:
    Roman Stumm
    • Constructor Detail

      • Groups

        public Groups()
    • Method Detail

      • getGroups

        public Set<Group> getGroups()
        Get the Groups.
        Returns:
        Set of Group.
      • insertGroup

        boolean insertGroup​(Group group)
        Insert a Group.
        Parameters:
        group - to insert
        Returns:
        success
      • insertSequence

        boolean insertSequence​(Collection<Group> groups)
        Insert a sequence.
        Parameters:
        groups - List of Group to insert
        Returns:
        success
      • assertDefaultGroupSequenceIsExpandable

        void assertDefaultGroupSequenceIsExpandable​(List<Group> defaultGroups)
        Assert that the default group can be expanded to defaultGroups. Package-private method intended for unit tests.
        Parameters:
        defaultGroups -