public static class GroupStrategy.Composite extends Object implements GroupStrategy
GroupStrategy.Composite, GroupStrategy.Simple
Modifier and Type | Field and Description |
---|---|
protected boolean |
ordered |
EMPTY
Constructor and Description |
---|
Composite(Collection<? extends GroupStrategy> components,
boolean ordered) |
Modifier and Type | Method and Description |
---|---|
boolean |
applyTo(Predicate<GroupStrategy> operation)
Apply the specified
boolean -returning operation . |
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 by
redefinitions . |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
composite, composite, redefining, simple, simple
public Composite(Collection<? extends GroupStrategy> components, boolean ordered)
public Set<Group> getGroups()
GroupStrategy
getGroups
in interface GroupStrategy
Set
of Group
public GroupStrategy redefining(Map<Group,? extends GroupStrategy> redefinitions)
GroupStrategy
redefinitions
.redefining
in interface GroupStrategy
GroupStrategy
public boolean applyTo(Predicate<GroupStrategy> operation)
GroupStrategy
boolean
-returning operation
.applyTo
in interface GroupStrategy
boolean
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.