![]() |
Synthia
Generic and flexible data structure generator
|
Picker for an integer from 0 to a fixed bound.
This interface extends Picker<Integer> by allowing the bound to be specified and modified after the construction of the object, using setInterval().
Definition at line 30 of file IndexPicker.java.

Public Member Functions | |
| IndexPicker | setInterval (int size) |
| Sets the range for the index picker. More... | |
| IndexPicker | duplicate (boolean with_state) |
| Creates a copy of the picker. More... | |
Public Member Functions inherited from ca.uqac.lif.synthia.Picker< Integer > | |
| void | reset () |
| Puts the picker back into its initial state. More... | |
| T | pick () |
| Picks an object. More... | |
| Picker< T > | duplicate (boolean with_state) |
| Creates a copy of the picker. More... | |
| IndexPicker ca.uqac.lif.synthia.IndexPicker.duplicate | ( | boolean | with_state | ) |
Creates a copy of the picker.
| with_state | If set to false, the returned copy is set to the class' initial state (i.e. same thing as calling the picker's constructor). If set to true, the returned copy is put into the same internal state as the object it is copied from. |
| IndexPicker ca.uqac.lif.synthia.IndexPicker.setInterval | ( | int | size | ) |
Sets the range for the index picker.
| size | The maximum value that can be picked |