Package org.apache.bval.jsr.groups
Class GroupsComputer
- java.lang.Object
-
- org.apache.bval.jsr.groups.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 Summary
Fields Modifier and Type Field Description static Class<?>[]DEFAULT_GROUPstatic GroupsDEFAULT_GROUPSThe default group array used in case any of the validate methods is called without a group.
-
Constructor Summary
Constructors Constructor Description GroupsComputer()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GroupscomputeCascadingGroups(Set<jakarta.validation.metadata.GroupConversionDescriptor> groupConversions, Class<?> group)Deprecated.GroupscomputeGroups(Class<?>... groups)Compute groups from an array of group classes.GroupscomputeGroups(Collection<Class<?>> groups)Compute groups from aCollection.GroupscomputeGroups(Stream<Class<?>> groups)Compute groups from aStream.
-
-
-
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 ofGroupConversionDescriptors.- Parameters:
groupConversions-group-- Returns:
Groups
-
computeGroups
public Groups computeGroups(Collection<Class<?>> groups)
Compute groups from aCollection.- Parameters:
groups-- Returns:
Groups
-
-