boundary / high-scale-lib

A fork of Cliff Click's High Scale Library. Improved with bug fixes and a real build system.
415 stars 61 forks source link

Add a LongIterator interface to favor primitives. #2

Closed pkwarren closed 11 years ago

pkwarren commented 11 years ago

The current IteratorLong class is a nested class in NonBlockingHashMapLong, which means to iterate over the keys without auto boxing the casting can get awkward. This adds an interface LongIterator which the returned iterator from keySet().iterator() can be cast to safely. This also cleans up the Maven POM file and adds a simple test for the iterator.