JavaScript is disabled on your browser.
Skip navigation links
biz.source_code.dsp.util

Class IntArray



  • public final class IntArray
    extends Object 
    A dynamic array of integers. This class is similar to ArrayList<Integer> and Vector<Integer>, but instead of Integer it uses the primitive data type int to store the integer values.
    • Constructor Detail

      • IntArray

        public IntArray()
      • IntArray

        public IntArray(int initialCapacity)
      • IntArray

        public IntArray(int[] a2)
    • Method Detail

      • clear

        public void clear()
      • size

        public int size()
      • setSize

        public void setSize(int newSize)
      • add

        public void add(int element)
      • addAll

        public void addAll(int[] a2)
      • set

        public void set(int index,
         int element)
      • get

        public int get(int index)
      • ensureCapacity

        public void ensureCapacity(int minCapacity)
      • toArray

        public int[] toArray()
      • parseOrNull

        public static IntArray parseOrNull(String s)
        Same as parse(), but returns null if the array would be empty.
      • unpack

        public static IntArray unpack(byte[] b,
         int p0,
         int bitsPerEntry,
         int n)
        Bitwise unpacks an integer array from a byte array.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /