Briding between java collections and int-based collections.