Class IIntList.IReadOnlyIntListFromArray

    • Field Detail

      • array

        int[] array
      • offset

        int offset
      • length

        int length
    • Constructor Detail

      • IReadOnlyIntListFromArray

        IReadOnlyIntListFromArray​(int[] array)
      • IReadOnlyIntListFromArray

        IReadOnlyIntListFromArray​(int[] array,
                                  int offset,
                                  int length)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in class IIntList
      • doGet

        protected int doGet​(int index)
        Description copied from class: IIntList
        Helper method for getting an element from the list. This is the only method which really gets an element. Override if you need to validity checks before getting.
        Specified by:
        doGet in class IIntList
        Parameters:
        index - index of element to return
        Returns:
        the element at the specified position in this list