class ResourceDimensions {

    public static long divideAndRoundUp(ResourceDimension left, ResourceDimension right) {
        Pair<Long, ResourceDimension> result = divide(left, right);
        return result.getRight().equals(ResourceDimension.empty()) ? result.getLeft() : result.getLeft() + 1;
    }

}