Documentation of 'cc.redberry.core.utils.IntArrayList' Java class
IntArrayList
cc.redberry.core.utils

Class IntArrayList



  • public final class IntArrayList
    extends java.lang.Object
    Array list of primitive integers.
    • Constructor Detail

      • IntArrayList

        public IntArrayList()
      • IntArrayList

        public IntArrayList(int initialCapacity)
      • IntArrayList

        public IntArrayList(int[] data)
    • Method Detail

      • clear

        public void clear()
      • ensureCapacity

        public void ensureCapacity(int minCapacity)
      • add

        public void add(int num)
      • add

        public void add(int position,
                        int num)
      • addAll

        public void addAll(int[] arr)
      • addAll

        public void addAll(IntArray intArray)
      • set

        public void set(int position,
                        int num)
      • sort

        public void sort()
      • push

        public void push(int value)
        Alias for addAll(int) method.
        Parameters:
        value -
      • peek

        public int peek()
        Return last element leaving it in stack.
        Returns:
        last element leaving it in stack
      • pop

        public int pop()
        Removes the object at the top of this stack and returns that object as the value of this function.
        Returns:
        pop
      • add

        public void add(int[] src,
                        int fromIndex,
                        int lenght)
        Copies an array from the specified source array, beginning at the specified position. The number of components copied is equal to the length argument.
        Parameters:
        src - - the source array.
        fromIndex - - starting position in the source array.
        lenght - - the number of array elements to be copied.
      • get

        public int get(int i)
      • replaceFirst

        public boolean replaceFirst(int from,
                                    int to)
      • replaceAll

        public boolean replaceAll(int from,
                                  int to)
      • toArray

        public int[] toArray()
      • size

        public int size()
      • contains

        public boolean contains(int value)
      • removeAfter

        public void removeAfter(int point)
      • remove

        public int remove(int index)
      • removeElement

        public boolean removeElement(int element)
      • removeAll

        public boolean removeAll(IntArrayList c,
                                 int cbegin,
                                 int cend)
      • removeAll

        public boolean removeAll(int[] c)
      • removeAll

        public boolean removeAll(int[] c,
                                 int cbegin,
                                 int cend)
      • indexOf

        public int indexOf(int value)
      • isEmpty

        public boolean isEmpty()
      • clone

        public IntArrayList clone()
        Overrides:
        clone in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.