 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.collection;
21 import java.util.ArrayList;
22 import java.util.Collections;
23 import java.util.List;
97 List<Object> list =
new ArrayList<>(values.length);
98 Collections.addAll(list, values);
105 List<Object> picked_elements =
new ArrayList<>();
109 for (
int i = 0; i < size; i++)
121 return picked_elements;
ListPicker newPicker(Picker< Integer > size_picker, Picker<?>... pickers)
Returns a new list picker.
Miscellaneous pickers performing various functions.
Picker<?>[] m_pickers
The pickers used to generate the values.
Picker that merges the result of other pickers into a list.
Picker that merges the result of other pickers into a composite data structure.
Picker that returns the same object every time.
ListPicker duplicate(boolean with_state)
Picker< Integer > m_sizePicker
ListPicker newPicker(Picker<?> ... pickers)
Returns a new list picker.
ListPicker(Picker< Integer > size_picker, Picker<?>... pickers)
Constructor who takes a ca.uqac.lif.synthia.Picker<Integer> to determine the size of the list returne...
ListPicker(Picker<?> ... pickers)
Default constructor using a constant list size.
Picker< T > duplicate(boolean with_state)
Creates a copy of the picker.
void reset()
Puts the picker back into its initial state.
List< Object > getOutput(Object ... values)
Return a list of values.