A GENERALIZATION OF THE SWARTZ EQUALITY