Package org.apache.bval.jsr.groups
Interface GroupStrategy
-
- All Known Implementing Classes:
Group
,Group.Sequence
,GroupStrategy.Composite
,GroupStrategy.Simple
public interface GroupStrategy
Group strategy interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
GroupStrategy.Composite
static class
GroupStrategy.Simple
-
Field Summary
Fields Modifier and Type Field Description static GroupStrategy
EMPTY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
applyTo(Predicate<GroupStrategy> operation)
Apply the specifiedboolean
-returningoperation
.static GroupStrategy
composite(Collection<? extends GroupStrategy> components)
static GroupStrategy
composite(GroupStrategy... components)
Set<Group>
getGroups()
Get the associated groups.GroupStrategy
redefining(Map<Group,? extends GroupStrategy> redefinitions)
Get an equivalent strategy making group substitutions specified byredefinitions
.static GroupStrategy
redefining(GroupStrategy source, Map<Group,? extends GroupStrategy> redefinitions)
static GroupStrategy
simple(Collection<? extends Group> coll)
static GroupStrategy
simple(Group... groups)
-
-
-
Field Detail
-
EMPTY
static final GroupStrategy EMPTY
-
-
Method Detail
-
redefining
static GroupStrategy redefining(GroupStrategy source, Map<Group,? extends GroupStrategy> redefinitions)
-
simple
static GroupStrategy simple(Group... groups)
-
simple
static GroupStrategy simple(Collection<? extends Group> coll)
-
composite
static GroupStrategy composite(GroupStrategy... components)
-
composite
static GroupStrategy composite(Collection<? extends GroupStrategy> components)
-
redefining
GroupStrategy redefining(Map<Group,? extends GroupStrategy> redefinitions)
Get an equivalent strategy making group substitutions specified byredefinitions
.- Parameters:
redefinitions
-- Returns:
GroupStrategy
-
applyTo
default boolean applyTo(Predicate<GroupStrategy> operation)
Apply the specifiedboolean
-returningoperation
.- Parameters:
operation
-- Returns:
boolean
-
-