Skip to content

0.1.3 "Deque Building"

Compare
Choose a tag to compare
@tommyettinger tommyettinger released this 15 Jun 06:05
· 872 commits to master since this release

This release mostly adds deque (double-ended queue, or stack/queue hybrid) classes for generic Objects and all primitive types (except boolean, which you can really just use a byte for). I'm not sure what people will use these for, but they offer more functionality than ArrayDeque in the JDK by allowing random-access get() and set() into the deque.

This also makes a potentially breaking change by renaming the inner (and barely-exposed) classes implementing Iterator so they don't all have the same name. It was just a little confusing to have multiple SetIterators in differerent classes, all exposed somewhat. Since the iterator() method on all of these sets returned an Iterator or some type of PrimitiveIterator, and not the renamed class, there should usually be no change required.