Momentum and collisions

What distinguishes an ideal elastic collision from an inelastic collision?