copyCollection(orderedFields, rhs.orderedFields); if (rhs.orderedFieldsArray != null) { orderedFieldsArray = new int[rhs.orderedFieldsArray.length]; for (int i = 0; i < rhs.orderedFieldsArray.length; i++) { orderedFieldsArray[i] = rhs.orderedFieldsArray[i]; } }
    private void copyFrom(DataDictionary rhs) {        hasVersion = rhs.hasVersion;        beginString = rhs.beginString;        checkFieldsOutOfOrder = rhs.checkFieldsOutOfOrder;        checkFieldsHaveValues = rhs.checkFieldsHaveValues;        checkUserDefinedFields = rhs.checkUserDefinedFields;        copyMap(messageFields, rhs.messageFields);        copyMap(requiredFields, rhs.requiredFields);        copyCollection(messages, rhs.messages);        copyCollection(fields, rhs.fields);        copyCollection(orderedFields, rhs.orderedFields);        if (rhs.orderedFieldsArray != null) {            orderedFieldsArray = new int[rhs.orderedFieldsArray.length];            for (int i = 0; i < rhs.orderedFieldsArray.length; i++) {                orderedFieldsArray[i] = rhs.orderedFieldsArray[i];            }        }        copyMap(headerFields, rhs.headerFields);        copyMap(trailerFields, rhs.trailerFields);        copyMap(fieldTypes, rhs.fieldTypes);        copyMap(fieldValues, rhs.fieldValues);        copyMap(fieldNames, rhs.fieldNames);        copyMap(names, rhs.names);        copyMap(valueNames, rhs.valueNames);        copyMap(groups, rhs.groups);        copyMap(components, rhs.components);    }