Class IntArrayList


  • public class IntArrayList
    extends Object
    array list for basic int data type to instead of ArrayList Well, this will save a lot work to Reopened and Unpacking
    Author:
    chenxin
    • Constructor Detail

      • IntArrayList

        public IntArrayList()
      • IntArrayList

        public IntArrayList​(int opacity)
    • Method Detail

      • add

        public void add​(int val)
        Append a new Integer to the end.
        Parameters:
        val -
      • get

        public int get​(int idx)
      • set

        public void set​(int idx,
                        int val)
      • remove

        public void remove​(int idx)
        remove the element at the specified position use System.arraycopy instead of a loop may be more efficient
        Parameters:
        idx -
      • size

        public int size()
      • clear

        public void clear()