Class GroupsComputer


  • public class GroupsComputer
    extends Object
    Description: compute group order, based on the RI behavior as to guarantee compatibility with interpretations of the spec.
    Implementation is thread-safe.
    • Field Detail

      • DEFAULT_GROUP

        public static final Class<?>[] DEFAULT_GROUP
      • DEFAULT_GROUPS

        public static final Groups DEFAULT_GROUPS
        The default group array used in case any of the validate methods is called without a group.
    • Constructor Detail

      • GroupsComputer

        public GroupsComputer()
    • Method Detail

      • computeGroups

        @SafeVarargs
        public final Groups computeGroups​(Class<?>... groups)
        Compute groups from an array of group classes.
        Parameters:
        groups -
        Returns:
        Groups
      • computeCascadingGroups

        @Deprecated
        public final Groups computeCascadingGroups​(Set<jakarta.validation.metadata.GroupConversionDescriptor> groupConversions,
                                                   Class<?> group)
        Deprecated.
        Compute groups for a single cascading validation taking into account the specified set of GroupConversionDescriptors.
        Parameters:
        groupConversions -
        group -
        Returns:
        Groups