public class

OverrideCollectiveTypeStategy

extends CollectiveTypeStrategy
java.lang.Object
   ↳ org.apache.commons.betwixt.strategy.CollectiveTypeStrategy
     ↳ org.apache.commons.betwixt.strategy.impl.OverrideCollectiveTypeStategy

Class Overview

Strategy that allows specific classes to be marked as collective (overrideCollective(Class)) or not collective (overrideNotCollective(Class)).

Summary

[Expand]
Inherited Fields
From class org.apache.commons.betwixt.strategy.CollectiveTypeStrategy
Public Constructors
OverrideCollectiveTypeStategy()
Constructs a strategy which delegates to CollectiveTypeStrategy#DEFAULT
OverrideCollectiveTypeStategy(CollectiveTypeStrategy delegate)
Constructs a strategy which delegates all those that it does not override.
Public Methods
boolean isCollective(Class type)
Is this a loop type class?
void overrideCollective(Class type)
Marks the given type to be treated as collective.
void overrideNotCollective(Class type)
Marks the given type to be treated as not collective
[Expand]
Inherited Methods
From class org.apache.commons.betwixt.strategy.CollectiveTypeStrategy
From class java.lang.Object

Public Constructors

public OverrideCollectiveTypeStategy ()

Constructs a strategy which delegates to CollectiveTypeStrategy#DEFAULT

public OverrideCollectiveTypeStategy (CollectiveTypeStrategy delegate)

Constructs a strategy which delegates all those that it does not override.

Public Methods

public boolean isCollective (Class type)

Is this a loop type class?

Parameters
type is this Class a loop type?
Returns
  • true if the type is a loop type, or if type is null

public void overrideCollective (Class type)

Marks the given type to be treated as collective.

Parameters
type Class, not null

public void overrideNotCollective (Class type)

Marks the given type to be treated as not collective