Lines Matching defs:index
178 public synchronized int get(final int index) {
179 if (index < FIRST_LAYER_SIZE) {
181 return firstLayerCache[index];
184 if (index < SECOND_LAYER_SIZE) {
187 return secondLayerCache.get(index);
191 final Integer value = generalCache.get(index);
196 public synchronized void put(final int index, final int value) {
197 if (index < FIRST_LAYER_SIZE) {
199 firstLayerCache[index] = value;
203 if (index < SECOND_LAYER_SIZE) {
208 secondLayerCache.put(index, value);
216 generalCache.put(index, value);
232 public int get(final int index) {
233 final int firstIndex = index >> shift;
236 return firstLayerRow[index - (firstIndex * (1 << shift))];
239 public void put(final int index, final int value) {
240 final int firstIndex = index >> shift;
245 firstLayerRow[index - (firstIndex * (1 << shift))] = value;