|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.strategy.CollectiveTypeStrategy org.apache.commons.betwixt.strategy.impl.OverrideCollectiveTypeStategy
public class OverrideCollectiveTypeStategy
Strategy that allows specific classes to be marked as
collective (overrideCollective(Class)
)
or not collective (overrideNotCollective(Class)
).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.betwixt.strategy.CollectiveTypeStrategy |
---|
CollectiveTypeStrategy.Default |
Field Summary |
---|
Fields inherited from class org.apache.commons.betwixt.strategy.CollectiveTypeStrategy |
---|
DEFAULT |
Constructor Summary | |
---|---|
OverrideCollectiveTypeStategy()
Constructs a strategy which delegates to CollectiveTypeStrategy#DEFAULT |
|
OverrideCollectiveTypeStategy(CollectiveTypeStrategy delegate)
Constructs a strategy which delegates all those that it does not override. |
Method Summary | |
---|---|
boolean |
isCollective(java.lang.Class type)
Is this a loop type class? |
void |
overrideCollective(java.lang.Class type)
Marks the given type to be treated as collective. |
void |
overrideNotCollective(java.lang.Class type)
Marks the given type to be treated as not collective |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OverrideCollectiveTypeStategy()
public OverrideCollectiveTypeStategy(CollectiveTypeStrategy delegate)
delegate
- Method Detail |
---|
public void overrideCollective(java.lang.Class type)
type
- Class
, not nullpublic void overrideNotCollective(java.lang.Class type)
type
- public boolean isCollective(java.lang.Class type)
CollectiveTypeStrategy
isCollective
in class CollectiveTypeStrategy
type
- is this Class
a loop type?
CollectiveTypeStrategy.isCollective(Class)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |