A sufficient condition for the global asymptotic stability of a class of logistic equations with piecewise constant delay