Skip to content

Java primitive collections for char, int, float, long, and double Lists, SortedLists, ArrayViews, Iterators, and Maps.

License

Notifications You must be signed in to change notification settings

TeamworkGuy2/JPrimitiveCollections

Repository files navigation

JPrimitiveCollections

Primitive data collections (char, int, float, long, double), including:

  • array lists - primitive list API mirroring java.util.List
  • bags (unordered lists) - a list of primitives which does not define a result order when an item is removed
  • sorted lists - a sorted list of primitives, with no way to set or insert a value at a specific index to ensure the list remains sorted
  • sorted maps - associate a primitive key with a generic value
  • array views - wrap a primitive array, offset, and size in a list like API
  • iterators - with primitive and boxed wrapper versions
  • read only interfaces - e.g. IntListReadOnly with average(), get(int), toArray(), and toList(). Or IntSearchablewithcontains(int), indexOf(int), lastIndexOf(int), and size()`.

The primary purpose of these collections are to provide performance improvements over equivalent Java collections such as HashMap and ArrayList.

Take a look at the 'test' package for some examples of how the API works.

About

Java primitive collections for char, int, float, long, and double Lists, SortedLists, ArrayViews, Iterators, and Maps.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages