 |
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.List;
55 int len = original.size();
57 List<T> new_list =
new ArrayList<T>(len);
58 new_list.addAll(original);
59 new_list.remove(position1);
DeleteElement< T > duplicate(boolean with_state)
Creates a copy of the picker.
Picker<? extends T > m_picker
The underlying picker producing the values to transform.
Miscellaneous pickers performing various functions.
List< T > pick()
Picks an object.
A picker that applies a transformation ("mutation") on the value produced by another picker.
DeleteElement(Picker<? extends List< T >> picker, Picker< Float > position)
Creates a new instance of the picker.
Picker< Float > m_position
A picker used to select the position of the element.
Picker< T > duplicate(boolean with_state)
Creates a copy of the picker.
Mutator that receives a list and selects an element to delete from it.