blob: 4e671e35afafea59befc84bac97d226b3a9f31dc [file] [log] [blame]
package org.onlab.onos.net.flow;
import java.util.Set;
import com.google.common.collect.ImmutableSet;
public class CompletedBatchOperation implements BatchOperationResult<FlowEntry> {
private final boolean success;
private final Set<FlowEntry> failures;
public CompletedBatchOperation(boolean success, Set<FlowEntry> failures) {
this.success = success;
this.failures = ImmutableSet.copyOf(failures);
}
@Override
public boolean isSuccess() {
return success;
}
@Override
public Set<FlowEntry> failedItems() {
return failures;
}
}