@Override @SuppressWarnings("unchecked") public TableValueSupport clone() { TableValueSupport result = (TableValueSupport) super.clone(); result.dataMap = (HashMap<List<MetaValue>, CompositeValue>) dataMap.clone(); return result; }
@Override @SuppressWarnings("unchecked") public TableValueSupport clone() { TableValueSupport result = (TableValueSupport) super.clone(); result.dataMap = (HashMap<List<MetaValue>, CompositeValue>) dataMap.clone(); return result; }
@Override @SuppressWarnings("unchecked") public MetaValue clone() { CollectionValueSupport result = (CollectionValueSupport) super.clone(); int size = getSize(); if (size > 0) { result.elements = new MetaValue[size]; System.arraycopy(elements, 0, result.elements, 0, size); } return result; }
@Override public MetaValue clone() { ArrayValueSupport result = (ArrayValueSupport) super.clone(); int length = getLength(); if (value != null && length > 0) { // TODO: This is wrong as value is not an Object[] in general result.value = new Object[length]; System.arraycopy(value, 0, result.value, 0, length); } return result; }
@Override public MetaValue clone() { ArrayValueSupport result = (ArrayValueSupport) super.clone(); int length = getLength(); if (value != null && length > 0) { // TODO: This is wrong as value is not an Object[] in general result.value = new Object[length]; System.arraycopy(value, 0, result.value, 0, length); } return result; }
@Override @SuppressWarnings("unchecked") public MetaValue clone() { CollectionValueSupport result = (CollectionValueSupport) super.clone(); int size = getSize(); if (size > 0) { result.elements = new MetaValue[size]; System.arraycopy(elements, 0, result.elements, 0, size); } return result; }