Class IntList


  • public class IntList
    extends Object
    An append-only integer list avoids autoboxing and buffer resizing
    • Constructor Detail

      • IntList

        public IntList()
    • Method Detail

      • add

        public void add​(int i)
        Parameters:
        i - value to append to the end of the list
      • iterator

        public IntList.IntIterator iterator()
        (not an actual Iterable)
        Returns:
        an IntIterator on the content
      • size

        public int size()
        Returns:
        the current size of the list