public final class Group extends Object implements GroupStrategy
Modifier and Type | Class and Description |
---|---|
static class |
Group.Sequence
Models a group sequence.
|
GroupStrategy.Composite, GroupStrategy.Simple
Modifier and Type | Field and Description |
---|---|
static Group |
DEFAULT
the Default Group
|
EMPTY
Constructor and Description |
---|
Group(Class<?> group)
Create a new Group instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
applyTo(Predicate<GroupStrategy> operation)
Apply the specified
boolean -returning operation . |
boolean |
equals(Object o) |
Class<?> |
getGroup()
Get the actual group class.
|
Set<Group> |
getGroups()
Get the associated groups.
|
int |
hashCode() |
boolean |
isDefault()
Learn whether the group represented is the default group.
|
static Group |
of(Class<?> group) |
GroupStrategy |
redefining(Map<Group,? extends GroupStrategy> redefinitions)
Get an equivalent strategy making group substitutions specified by
redefinitions . |
static Group.Sequence |
sequence(Collection<Group> groups) |
static Group.Sequence |
sequence(Group... groups) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
composite, composite, redefining, simple, simple
public static final Group DEFAULT
public Group(Class<?> group)
group
- public static final Group.Sequence sequence(Group... groups)
public static final Group.Sequence sequence(Collection<Group> groups)
public Class<?> getGroup()
public boolean isDefault()
public Set<Group> getGroups()
GroupStrategy
getGroups
in interface GroupStrategy
Set
of Group
public boolean applyTo(Predicate<GroupStrategy> operation)
GroupStrategy
boolean
-returning operation
.applyTo
in interface GroupStrategy
boolean
public GroupStrategy redefining(Map<Group,? extends GroupStrategy> redefinitions)
GroupStrategy
redefinitions
.redefining
in interface GroupStrategy
GroupStrategy
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.