public GoToTableCaseBuilder(GoToTableCase base) { this._goToTable = base.getGoToTable(); if (base instanceof GoToTableCaseImpl) { GoToTableCaseImpl _impl = (GoToTableCaseImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
if (other.getGoToTable() != null) { return false; } else if(!_goToTable.equals(other.getGoToTable())) { return false;
@Override public Optional<Instruction> process(final @Nonnull org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.GoToTableCase source, final ActionConvertorData data, ConvertorExecutor convertorExecutor) { GoToTable goToTable = source.getGoToTable(); GotoTableCaseBuilder gotoTableCaseBuilder = new GotoTableCaseBuilder(); GotoTableBuilder gotoTableBuilder = new GotoTableBuilder(); gotoTableBuilder.setTableId(goToTable.getTableId()); gotoTableCaseBuilder.setGotoTable(gotoTableBuilder.build()); InstructionBuilder instructionBuilder = new InstructionBuilder(); instructionBuilder.setInstructionChoice(gotoTableCaseBuilder.build()); return Optional.of(instructionBuilder.build()); } }
private short lookUpInstructions(List<Instruction> inns) { short nextTableId = -1; Map<Integer, Instruction> indexedInss = sortAndIndexInstructionsByOrder(inns); for (int i = 0; i < indexedInss.size(); i++) { org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.Instruction ins = indexedInss.get(i).getInstruction(); if (ins instanceof MeterCase) { meterCase((MeterCase) ins); }else if (ins instanceof ApplyActionsCase) { applyActionsCase((ApplyActionsCase) ins); } else if (ins instanceof ClearActionsCase) { clearActionsCase((ClearActionsCase) ins); } else if (ins instanceof WriteActionsCase) { writeActionsCase((WriteActionsCase) ins); } else if (ins instanceof WriteMetadataCase) { writeMetadataCase((WriteMetadataCase) ins); } else if (ins instanceof GoToTableCase) { nextTableId = ((GoToTableCase) ins).getGoToTable().getTableId(); } } return nextTableId; }