Class Limit<T extends org.anchoranalysis.io.input.InputFromManager>
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.input.bean.InputManager<T>>
org.anchoranalysis.io.input.bean.InputManager<T>
org.anchoranalysis.io.input.bean.InputManagerUnary<T>
org.anchoranalysis.plugin.io.bean.input.Limit<T>
- Type Parameters:
T- input-type.
public class Limit<T extends org.anchoranalysis.io.input.InputFromManager>
extends org.anchoranalysis.io.input.bean.InputManagerUnary<T>
Limits the number of input-objects to a certain hard-maximum
If there's more input-objects than the maximum, the first maxNumItems are chosen
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description Limit() -
Method Summary
Modifier and Type Method Description intgetMaxNumberItems()protected org.anchoranalysis.io.input.InputsWithDirectory<T>inputsFromDelegate(org.anchoranalysis.io.input.InputsWithDirectory<T> fromDelegate, org.anchoranalysis.io.input.bean.InputManagerParameters parameters)voidsetMaxNumberItems(int maxNumberItems)Methods inherited from class org.anchoranalysis.io.input.bean.InputManagerUnary
getInput, inputs, setInput
-
Constructor Details
-
Limit
public Limit()
-
-
Method Details
-
inputsFromDelegate
protected org.anchoranalysis.io.input.InputsWithDirectory<T> inputsFromDelegate(org.anchoranalysis.io.input.InputsWithDirectory<T> fromDelegate, org.anchoranalysis.io.input.bean.InputManagerParameters parameters) throws org.anchoranalysis.io.input.InputReadFailedException- Specified by:
inputsFromDelegatein classorg.anchoranalysis.io.input.bean.InputManagerUnary<T extends org.anchoranalysis.io.input.InputFromManager>- Throws:
org.anchoranalysis.io.input.InputReadFailedException
-
getMaxNumberItems
public int getMaxNumberItems() -
setMaxNumberItems
public void setMaxNumberItems(int maxNumberItems)
-