public RemoveMeterOutputBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.RemoveMeterOutput>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.RemoveMeterOutput> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
@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; } };
private RemoveMeterOutputImpl(RemoveMeterOutputBuilder base) { this._transactionId = base.getTransactionId(); switch (base.augmentation.size()) { case 0: this.augmentation = Collections.emptyMap(); break; case 1: final Map.Entry<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.RemoveMeterOutput>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.RemoveMeterOutput>> e = base.augmentation.entrySet().iterator().next(); this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.RemoveMeterOutput>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.RemoveMeterOutput>>singletonMap(e.getKey(), e.getValue()); break; default : this.augmentation = new HashMap<>(base.augmentation); } }