Easy inventory comparison

An easy way to compare if 2 inventories contain the same items. P.S. I haven't taken too much time looking around the CraftBukkit code so if I did something wrong I apologize.