/** * Takes an array of numeric values and converts all of them into the same _type, with 'minType' defining the minimum common _type. type become The common * type everything was converted to. */ private void promote(final Type minType, final Number... nums) { Type largest = findHighestType(nums); if (largest.isLessThan(minType)) largest = minType; prepArray(largest, nums.length); for (int i = 0; i < nums.length; i++) promote(nums[i], i, largest); _type = largest; }
/** * Takes an array of numeric values and converts all of them into the same _type, with 'minType' defining the minimum common _type. type become The common * type everything was converted to. */ private void promote(final Type minType, final Number... nums) { Type largest = findHighestType(nums); if (largest.isLessThan(minType)) largest = minType; prepArray(largest, nums.length); for (int i = 0; i < nums.length; i++) promote(nums[i], i, largest); _type = largest; }