What is the meaning of [What’s yours is mine and what’s mine is my own]

This is a skit on the quotation from Shakespeare’s _Measure for Measure_ :
‘What’s is mine is yours, and what is yours is mine.’ A similar saying is:
‘Heads I win, tails you lose’