2 * Copyright © 2017 Red Hat, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.genius.mdsalutil.instructions;
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.ClearActionsCaseBuilder;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.InstructionBuilder;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.InstructionKey;
16 * Clear actions instruction.
18 public class InstructionClearActions extends AbstractInstructionInfoImpl {
21 public Instruction buildInstruction(int instructionKey) {
22 return new InstructionBuilder()
23 .setInstruction(new ClearActionsCaseBuilder().build())
24 .setKey(new InstructionKey(instructionKey))
29 public boolean equals2(Object other) {
33 if (other == null || getClass() != other.getClass()) {
40 public int hashCode2() {
45 protected String toString2() {
46 return "InstructionClearActions";