 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.relative;
21 import java.util.Comparator;
Picker<? extends T > m_picker
The underlying picker producing the values to transform.
PickSmallerComparator(Picker<? extends T > source, T o, Comparator< T > c)
Creates a new instance of the picker.
PickSmallerComparator< T > duplicate(boolean with_state)
Creates a copy of the picker.
boolean select(T element)
Method to evaluate if an element is satisfying a condition.
PickSmallerComparator< T > getSmaller(T o, Comparator< T > c)
Returns object from a picker satisfying a condition.
T m_reference
The reference object that candidate values are compared to.
Comparator< T > m_comparator
A comparator for objects of type T.
int m_maxIteration
The maximal number of iteration that the while loop of the pick() method can do.
A variant of PickIf that selects an element if it is smaller than a reference object.
Picker< T > duplicate(boolean with_state)
Creates a copy of the picker.