Package org.apache.bval.jsr.groups
Class GroupStrategy.Composite
- java.lang.Object
-
- org.apache.bval.jsr.groups.GroupStrategy.Composite
-
- All Implemented Interfaces:
GroupStrategy
- Direct Known Subclasses:
Group.Sequence
- Enclosing interface:
- GroupStrategy
public static class GroupStrategy.Composite extends Object implements GroupStrategy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.bval.jsr.groups.GroupStrategy
GroupStrategy.Composite, GroupStrategy.Simple
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
ordered
-
Fields inherited from interface org.apache.bval.jsr.groups.GroupStrategy
EMPTY
-
-
Constructor Summary
Constructors Constructor Description Composite(Collection<? extends GroupStrategy> components, boolean ordered)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applyTo(Predicate<GroupStrategy> operation)
Apply the specifiedboolean
-returningoperation
.boolean
equals(Object obj)
Set<Group>
getGroups()
Get the associated groups.int
hashCode()
GroupStrategy
redefining(Map<Group,? extends GroupStrategy> redefinitions)
Get an equivalent strategy making group substitutions specified byredefinitions
.String
toString()
-
-
-
Constructor Detail
-
Composite
public Composite(Collection<? extends GroupStrategy> components, boolean ordered)
-
-
Method Detail
-
getGroups
public Set<Group> getGroups()
Description copied from interface:GroupStrategy
Get the associated groups.- Specified by:
getGroups
in interfaceGroupStrategy
- Returns:
Set
ofGroup
-
redefining
public GroupStrategy redefining(Map<Group,? extends GroupStrategy> redefinitions)
Description copied from interface:GroupStrategy
Get an equivalent strategy making group substitutions specified byredefinitions
.- Specified by:
redefining
in interfaceGroupStrategy
- Returns:
GroupStrategy
-
applyTo
public boolean applyTo(Predicate<GroupStrategy> operation)
Description copied from interface:GroupStrategy
Apply the specifiedboolean
-returningoperation
.- Specified by:
applyTo
in interfaceGroupStrategy
- Returns:
boolean
-
-