org.callbackparams.combine
Class CombineCompletely
java.lang.Object
org.callbackparams.combine.AbstractCombineStrategy
org.callbackparams.combine.CombineCompletely
- All Implemented Interfaces:
- CombineStrategy
public class CombineCompletely
- extends AbstractCombineStrategy
CombineStrategy that creates all callback-records possible. The number of
records will grow exponentially with each array of callback-records added
to ValuesCollection and that might result in an utterly high number of
callback-records that might surprise an inexperienced developer. Therefore
this strategy will come with a default maxCount of 100, which must be
increased if the developer intends to use this strategy to produce a larger
number of callback-records.
- Author:
- Henrik Kaipe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombineCompletely
public CombineCompletely()
combineInternal
protected Collection combineInternal(ValuesCollection vc)
- Description copied from class:
AbstractCombineStrategy
- This is the method to implement when implementing
CombineStrategy
by subclassing AbstractCombineStrategy
.
The advantage compared to overriding AbstractCombineStrategy.combine(ValuesCollection)
is that maxCount-check and validation of configuration for
AbstractCombineStrategy.setMaxCount(int)
and AbstractCombineStrategy.setRandomSeed(long)
will be taken
care of by the super-class - relieving this method to administer
combining exclusivly.
- Specified by:
combineInternal
in class AbstractCombineStrategy
Copyright © 2010-2013 Henrik Kaipe. All Rights Reserved.