if (!Objects.equals(_transactionId, other.getTransactionId())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
public UpdateMeterOutputBuilder(UpdateMeterOutput base) { this._transactionId = base.getTransactionId(); if (base instanceof UpdateMeterOutputImpl) { UpdateMeterOutputImpl impl = (UpdateMeterOutputImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.UpdateMeterOutput> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.UpdateMeterOutput>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
@Override public RpcResult<RemoveMeterOutput> apply(final RpcResult<UpdateMeterOutput> input) { UpdateMeterOutput updateMeterOutput = input.getResult(); RemoveMeterOutputBuilder removeMeterOutput = new RemoveMeterOutputBuilder(); removeMeterOutput.setTransactionId(updateMeterOutput.getTransactionId()); RemoveMeterOutput result = removeMeterOutput.build(); RpcResult<RemoveMeterOutput> rpcResult = assembleRpcResult(input, result); LOG.debug("Returning the Remove Meter RPC result to MD-SAL"); return rpcResult; } };
@Override public RpcResult<AddMeterOutput> apply(final RpcResult<UpdateMeterOutput> input) { UpdateMeterOutput updateMeterOutput = input.getResult(); AddMeterOutputBuilder addMeterOutput = new AddMeterOutputBuilder(); addMeterOutput.setTransactionId(updateMeterOutput.getTransactionId()); AddMeterOutput result = addMeterOutput.build(); RpcResult<AddMeterOutput> rpcResult = assembleRpcResult(input, result); LOG.debug("Returning the Add Meter RPC result to MD-SAL"); return rpcResult; } };