@SuppressWarnings("unchecked") protected Object copyInternal(ObjectLocator locator, List list) { final List copy = new ArrayList(list.size()); for (int index = 0; index < list.size(); index++) { final Object element = list.get(index); final Object copyElement = copy(item(locator, index, element), element); copy.add(copyElement); } return copy; }
protected StringBuilder appendDetail(ObjectLocator locator, StringBuilder buffer, double[] array) { buffer.append(arrayStart); for (int i = 0; i < array.length; i++) { if (i > 0) { buffer.append(arraySeparator); } append(item(locator, i, array[i]), buffer, array[i]); } buffer.append(arrayEnd); return buffer; }
protected int hashCodeInternal(ObjectLocator locator, int hashCode, Enum<?>[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode * iConstant + 1; for (int i = 0; i < value.length; i++) { currentHashCode = hashCodeInternal(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
public int hashCode(ObjectLocator locator, int hashCode, byte[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode; for (int i = 0; i < value.length; i++) { currentHashCode = hashCode(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
protected StringBuilder appendDetail(ObjectLocator locator, StringBuilder buffer, short[] array) { buffer.append(arrayStart); for (int i = 0; i < array.length; i++) { if (i > 0) { buffer.append(arraySeparator); } append(item(locator, i, array[i]), buffer, array[i]); } buffer.append(arrayEnd); return buffer; }
public int hashCode(ObjectLocator locator, int hashCode, int[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode; for (int i = 0; i < value.length; i++) { currentHashCode = hashCode(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
protected StringBuilder appendDetail(ObjectLocator locator, StringBuilder buffer, float[] array) { buffer.append(arrayStart); for (int i = 0; i < array.length; i++) { if (i > 0) { buffer.append(arraySeparator); } append(item(locator, i, array[i]), buffer, array[i]); } buffer.append(arrayEnd); return buffer; }
protected StringBuilder appendDetail(ObjectLocator locator, StringBuilder buffer, int[] array) { buffer.append(arrayStart); for (int i = 0; i < array.length; i++) { if (i > 0) { buffer.append(arraySeparator); } append(item(locator, i, array[i]), buffer, array[i]); } buffer.append(arrayEnd); return buffer; }
protected int hashCodeInternal(ObjectLocator locator, int hashCode, HashCode2[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode * iConstant + 1; for (int i = 0; i < value.length; i++) { currentHashCode = hashCodeInternal(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
public int hashCode(ObjectLocator locator, int hashCode, float[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode; for (int i = 0; i < value.length; i++) { currentHashCode = hashCode(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
public int hashCode(ObjectLocator locator, int hashCode, short[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode; for (int i = 0; i < value.length; i++) { currentHashCode = hashCode(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
protected StringBuilder appendDetail(ObjectLocator locator, StringBuilder buffer, long[] array) { buffer.append(arrayStart); for (int i = 0; i < array.length; i++) { if (i > 0) { buffer.append(arraySeparator); } append(item(locator, i, array[i]), buffer, array[i]); } buffer.append(arrayEnd); return buffer; }
public int hashCode(ObjectLocator locator, int hashCode, Object[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode * iConstant + 1; for (int i = 0; i < value.length; i++) { currentHashCode = hashCode(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
public int hashCode(ObjectLocator locator, int hashCode, boolean[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode; for (int i = 0; i < value.length; i++) { currentHashCode = hashCode(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
public int hashCode(ObjectLocator locator, int hashCode, char[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode; for (int i = 0; i < value.length; i++) { currentHashCode = hashCode(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
public int hashCode(ObjectLocator locator, int hashCode, long[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode; for (int i = 0; i < value.length; i++) { currentHashCode = hashCode(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
public int[] copy(ObjectLocator locator, int[] array) { if (array == null) { return null; } final int[] copy = new int[array.length]; for (int index = 0; index < array.length; index++) { final int element = array[index]; final int elementCopy = copy(item(locator, index, element), element); copy[index] = elementCopy; } return copy; }
protected StringBuilder appendDetail(ObjectLocator locator, StringBuilder buffer, char[] array) { buffer.append(arrayStart); for (int i = 0; i < array.length; i++) { if (i > 0) { buffer.append(arraySeparator); } append(item(locator, i, array[i]), buffer, array[i]); } buffer.append(arrayEnd); return buffer; }
protected int hashCodeInternal(ObjectLocator locator, int hashCode, HashCode[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode * iConstant + 1; for (int i = 0; i < value.length; i++) { currentHashCode = hashCodeInternal(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }
public int hashCode(ObjectLocator locator, int hashCode, double[] value) { if (value == null) { return hashCode * iConstant; } else { int currentHashCode = hashCode; for (int i = 0; i < value.length; i++) { currentHashCode = hashCode(item(locator, i, value[i]), currentHashCode, value[i]); } return currentHashCode; } }