private void removeChild(int index) { if (index == 0 && children.length == 1) { children = EMPTY_ARRAY; return; } long[] c2 = new long[children.length - 1]; DataUtils.copyExcept(children, c2, children.length, index); children = c2; }
DataUtils.copyExcept(keys, newKeys, keyLength, keyIndex); keys = newKeys; DataUtils.copyExcept(values, newValues, keyLength, index); values = newValues; totalCount--; DataUtils.copyExcept(children, newChildren, childCount, index); children = newChildren;
private void removeChild(int index) { if (index == 0 && children.length == 1) { children = EMPTY_ARRAY; return; } long[] c2 = new long[children.length - 1]; DataUtils.copyExcept(children, c2, children.length, index); children = c2; }
private void removeChild(int index) { if (index == 0 && children.length == 1) { children = EMPTY_ARRAY; return; } long[] c2 = new long[children.length - 1]; DataUtils.copyExcept(children, c2, children.length, index); children = c2; }
private void removeChild(int index) { if (index == 0 && children.length == 1) { children = EMPTY_ARRAY; return; } long[] c2 = new long[children.length - 1]; DataUtils.copyExcept(children, c2, children.length, index); children = c2; }
addMemory(-map.getKeyType().getMemory(old)); Object[] newKeys = new Object[keyLength - 1]; DataUtils.copyExcept(keys, newKeys, keyLength, keyIndex); keys = newKeys; addMemory(-map.getValueType().getMemory(old)); Object[] newValues = new Object[keyLength - 1]; DataUtils.copyExcept(values, newValues, keyLength, index); values = newValues; totalCount--; DataUtils.copyExcept(children, newChildren, childCount, index); children = newChildren;
addMemory(-map.getKeyType().getMemory(old)); Object[] newKeys = new Object[keyLength - 1]; DataUtils.copyExcept(keys, newKeys, keyLength, keyIndex); keys = newKeys; addMemory(-map.getValueType().getMemory(old)); Object[] newValues = new Object[keyLength - 1]; DataUtils.copyExcept(values, newValues, keyLength, index); values = newValues; totalCount--; DataUtils.copyExcept(children, newChildren, childCount, index); children = newChildren;
DataUtils.copyExcept(keys, newKeys, keyLength, keyIndex); keys = newKeys; DataUtils.copyExcept(values, newValues, keyLength, index); values = newValues; totalCount--; DataUtils.copyExcept(children, newChildren, childCount, index); children = newChildren;