6162636465666768697071
int middleIndex = size / 2; Object value1 = values.get(middleIndex - 1); Object value2 = values.get(middleIndex); Object sum = ordinalType.add(value1, value2); return ordinalType.divide(sum, 2); } } }; }