blob: e9889cdafbb7ed4cdde4770000f881b81e339e62 [file] [log] [blame]
alshabib902d41b2014-10-07 16:52:05 -07001package org.onlab.onos.net.flow;
2
alshabib193525b2014-10-08 18:58:03 -07003import java.util.List;
4
5import com.google.common.collect.ImmutableList;
6
7public class CompletedBatchOperation implements BatchOperationResult<FlowEntry> {
8
9
10 private final boolean success;
11 private final List<FlowEntry> failures;
12
13 public CompletedBatchOperation(boolean success, List<FlowEntry> failures) {
14 this.success = success;
15 this.failures = ImmutableList.copyOf(failures);
16 }
17
18 @Override
19 public boolean isSuccess() {
20 return success;
21 }
22
23 @Override
24 public List<FlowEntry> failedItems() {
25 return failures;
26 }
alshabib902d41b2014-10-07 16:52:05 -070027
28
29}