
com.mntviews.jreport.JRParamList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mnt-report Show documentation
Show all versions of mnt-report Show documentation
JasperReport server engine
package com.mntviews.jreport;
import lombok.NonNull;
import java.util.ArrayList;
import java.util.List;
public class JRParamList {
private JRParamList() {}
public static List clone(List jrParamList) {
List resParamList = new ArrayList<>();
for (JRParam srcParam : jrParamList) {
resParamList.add(srcParam.clone());
}
return resParamList;
}
public static List combineParamList(@NonNull List srcParamList, @NonNull List dstParamList) {
List resParamList = clone(srcParamList);
for (JRParam dstParam : dstParamList) {
boolean isExists = false;
for (JRParam resParam : resParamList) {
if (resParam.getKey().equals(dstParam.getKey())) {
isExists = true;
break;
}
}
if (!isExists)
resParamList.add(dstParam.clone());
}
return resParamList;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy