private static double getResultValue(List<Result> resultList, int searchIndex) {
        double returnValue = 0.0;
        boolean isNotFound = true;
        for (int i = 0; i < resultList.size() && isNotFound; i++) {
            Result result = (Result) resultList.get(i);
            if (result.getId() == searchIndex) {
                returnValue = result.getResult();
                isNotFound = false;
            }
        }
        return returnValue;
    }