Collections framework like Java