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_GROUP
static Groups
DEFAULT_GROUPS
The 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 Groups
computeCascadingGroups(Set<jakarta.validation.metadata.GroupConversionDescriptor> groupConversions, Class<?> group)
Deprecated.Groups
computeGroups(Class<?>... groups)
Compute groups from an array of group classes.Groups
computeGroups(Collection<Class<?>> groups)
Compute groups from aCollection
.Groups
computeGroups(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 ofGroupConversionDescriptor
s.- Parameters:
groupConversions
-group
-- Returns:
Groups
-
computeGroups
public Groups computeGroups(Collection<Class<?>> groups)
Compute groups from aCollection
.- Parameters:
groups
-- Returns:
Groups
-
-