Here you can find the source of arrayIndexOffset(int index, long baseOffset, long indexScale)
protected static long arrayIndexOffset(int index, long baseOffset, long indexScale)
//package com.java2s; //License from project: Apache License public class Main { protected static long arrayIndexOffset(int index, long baseOffset, long indexScale) { if (index < 0) throw new IndexOutOfBoundsException("index " + index); return baseOffset + (long) index * indexScale; }/*from w w w. j a va 2 s. c om*/ }