T
- input-type.public class Limit<T extends InputFromManager> extends InputManagerUnary<T>
If there's more input-objects than the maximum, the first maxNumItems are chosen
Constructor and Description |
---|
Limit() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxNumberItems() |
protected InputsWithDirectory<T> |
inputsFromDelegate(InputsWithDirectory<T> fromDelegate,
InputManagerParameters parameters)
Calculates the inputs to return given the inputs from the delegate.
|
void |
setMaxNumberItems(int maxNumberItems) |
getInput, inputs, setInput
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected InputsWithDirectory<T> inputsFromDelegate(InputsWithDirectory<T> fromDelegate, InputManagerParameters parameters) throws InputReadFailedException
InputManagerUnary
inputsFromDelegate
in class InputManagerUnary<T extends InputFromManager>
fromDelegate
- the inputs from the delegate.parameters
- parameters for determining inputs.InputReadFailedException
- if inputs cannot be successfully read from the file-system.public int getMaxNumberItems()
public void setMaxNumberItems(int maxNumberItems)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.