TH2 Add getter for a batch itself
@@ -18,6 +18,7 @@ package com.exactpro.sf.common.util;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.ObjectUtils;
@@ -51,6 +52,10 @@ public class EvolutionBatch {
batch.addAll(messages);
}
+ public List<IMessage> getBatch() {
+ return Collections.unmodifiableList(batch);
+ }
+
public boolean isEmpty() {
return batch.isEmpty();
}
