All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rauberprojects.client.model.Utils Maven / Gradle / Ivy

package com.github.rauberprojects.client.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Thomas on 22.11.2015.
 */
final class Utils {

    static List deepCopyDataList(List other) {
        final ArrayList newDataList = new ArrayList();

        for (Data data : other) {
            newDataList.add(new Data(data));
        }

        return newDataList;
    }
    static List deepCopyErrorList(List other) {
        final ArrayList newErrorList = new ArrayList();

        for (Error error : other) {
            newErrorList.add(new Error(error));
        }

        return newErrorList;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy