private NetworkMaps loadNetworkMaps() throws Exception { return new NetworkMapsBuilder().setNetworkMap(loadNetworkMapList()) .build(); }
public NetworkMapsBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.NetworkMaps>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.NetworkMaps> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
private NetworkMapsImpl(NetworkMapsBuilder base) { this._networkMap = base.getNetworkMap(); 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.alto.rev150404.resources.NetworkMaps>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.NetworkMaps>> e = base.augmentation.entrySet().iterator().next(); this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.NetworkMaps>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.NetworkMaps>>singletonMap(e.getKey(), e.getValue()); break; default : this.augmentation = new HashMap<>(base.augmentation); } }