Declaring StreamIterator as a private inner class as opposed to the default of package access