/** * Returns the sum of the object transformation cost for each class in the * source argument list. * * @param srcArgs the source arguments * @param dstArgs the destination arguments * @return the total transformation cost */ private static float getTotalTransformationCost(final Class<?>[] srcArgs, final Class<?>[] dstArgs) { float totalCost = 0.0f; for (int i = 0; i < srcArgs.length; i++) { Class<?> srcClass, dstClass; srcClass = srcArgs[i]; dstClass = dstArgs[i]; totalCost += getObjectTransformationCost(srcClass, dstClass); } return totalCost; }
/** * Returns the sum of the object transformation cost for each class in the * source argument list. * * @param srcArgs the source arguments * @param dstArgs the destination arguments * @return the total transformation cost */ private static float getTotalTransformationCost(final Class<?>[] srcArgs, final Class<?>[] dstArgs) { float totalCost = 0.0f; for (int i = 0; i < srcArgs.length; i++) { Class<?> srcClass, dstClass; srcClass = srcArgs[i]; dstClass = dstArgs[i]; totalCost += getObjectTransformationCost(srcClass, dstClass); } return totalCost; }
/** * Returns the sum of the object transformation cost for each class in the * source argument list. * * @param srcArgs the source arguments * @param dstArgs the destination arguments * @return the total transformation cost */ private static float getTotalTransformationCost(final Class<?>[] srcArgs, final Class<?>[] dstArgs) { float totalCost = 0.0f; for (int i = 0; i < srcArgs.length; i++) { Class<?> srcClass, dstClass; srcClass = srcArgs[i]; dstClass = dstArgs[i]; totalCost += getObjectTransformationCost(srcClass, dstClass); } return totalCost; }
/** * Returns the sum of the object transformation cost for each class in the * source argument list. * * @param srcArgs the source arguments * @param dstArgs the destination arguments * @return the total transformation cost */ private static float getTotalTransformationCost(final Class<?>[] srcArgs, final Class<?>[] dstArgs) { float totalCost = 0.0f; for (int i = 0; i < srcArgs.length; i++) { Class<?> srcClass, dstClass; srcClass = srcArgs[i]; dstClass = dstArgs[i]; totalCost += getObjectTransformationCost(srcClass, dstClass); } return totalCost; }