Skip to content

Array utilities for everything! Indexes, add, remove, concat, equals, reverse, expand, min, max, sum, and more.

License

Notifications You must be signed in to change notification settings

TeamworkGuy2/JArrays

Repository files navigation

JArrays

Java array utilities! Most functions include offset and length arguments to apply the operation to a sub-array:

  • Equality: equals(), indexOf(), lastIndexOf(), contains()
  • Add & Remove: add(), addRange(), remove(), concat()
  • Conversion: asArray(...), reverse(), expandArray(), toString()
  • Stats: avg(), max(), min(), sum()
  • Primitive-wrapper arrays to primitive arrays and vice-versa, (i.e. Integer[] -> int[]).
  • Also ArrayManager static class provides methods for using arrays like lists: add(), addAll(), clearAndAddAll(), expand(), removeIndex(), removeRange(), removeUnordered(), and removeValue()

Take a look at the twg2.arrays.test package for examples of how the APIs can be used.

About

Array utilities for everything! Indexes, add, remove, concat, equals, reverse, expand, min, max, sum, and more.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages