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

Class IntArray



  • public final class IntArray
    extends java.lang.Object
    Immutable integer array. This class is a simple wrapper of generic array of integers.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      IntArray(int[] innerArray) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int[] copy()
      This method returns new integer generic array, with copy of this IntArray data.
      int[] copy(int from, int to)
      This method returns new integer generic array, with copy of this IntArray data.
      boolean equals(java.lang.Object obj) 
      boolean equalsToArray(int[] array) 
      int get(int i)
      Returns the integer at the specified position in this IntArray.
      int hashCode() 
      int length()
      Returns number of elements in this IntArray
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • EMPTY_ARRAY

        public static final IntArray EMPTY_ARRAY
    • Constructor Detail

      • IntArray

        public IntArray(int[] innerArray)
        Parameters:
        innerArray - generic integer array to be wrapped
    • Method Detail

      • get

        public int get(int i)
        Returns the integer at the specified position in this IntArray.
        Parameters:
        i - position of the integer to return
        Returns:
        the integer at the specified position in this Indices
      • length

        public int length()
        Returns number of elements in this IntArray
        Returns:
        number of elements in this array
      • copy

        public int[] copy()
        This method returns new integer generic array, with copy of this IntArray data.
        Returns:
        integer generic array, with copy of this IntArray data
      • copy

        public int[] copy(int from,
                          int to)
        This method returns new integer generic array, with copy of this IntArray data.
        Returns:
        integer generic array, with copy of this IntArray data
      • equalsToArray

        public boolean equalsToArray(int[] array)
      • 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.