private static boolean parameterValuesEqual(final List<GeneralParameterValue> source,
final List<GeneralParameterValue> target,
final double errorTolerance)
{
search: for (final Iterator<GeneralParameterValue> targetIter=target.iterator(); targetIter.hasNext();) {
final GeneralParameterValue targetPrm = targetIter.next();
for (final Iterator<GeneralParameterValue> sourceIter=source.iterator(); sourceIter.hasNext();) {
final GeneralParameterValue sourcePrm = sourceIter.next();
if (!nameMatches(sourcePrm.getDescriptor(), targetPrm.getDescriptor())) {
continue;
}
if (sourcePrm instanceof ParameterValue && targetPrm instanceof ParameterValue) {
final ParameterValue<?> sourceValue = (ParameterValue) sourcePrm;
final ParameterValue<?> targetValue = (ParameterValue) targetPrm;