public IRD build() { return new IRDImpl(this); }
public CostMaps build() { return new CostMapsImpl(this); }
public NetworkMaps build() { return new NetworkMapsImpl(this); }
private NetworkMaps loadNetworkMaps() throws Exception { return new NetworkMapsBuilder().setNetworkMap(loadNetworkMapList()) .build(); }
if (other.getEndpointProperties() != null) { return false; } else if(!_endpointProperties.equals(other.getEndpointProperties())) { return false; if (other.getMeta() != null) { return false; } else if(!_meta.equals(other.getMeta())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
public IRDBuilder(IRD base) { this._meta = base.getMeta(); this._resources = base.getResources(); if (base instanceof IRDImpl) { IRDImpl impl = (IRDImpl) 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.alto.rev150404.resources.IRD> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.IRD>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public EndpointPropertyMapBuilder(EndpointPropertyMap base) { this._endpointProperties = base.getEndpointProperties(); this._meta = base.getMeta(); if (base instanceof EndpointPropertyMapImpl) { EndpointPropertyMapImpl impl = (EndpointPropertyMapImpl) 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.alto.rev150404.resources.EndpointPropertyMap> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.EndpointPropertyMap>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
private EndpointPropertyMapImpl(EndpointPropertyMapBuilder base) { this._endpointProperties = base.getEndpointProperties(); this._meta = base.getMeta(); 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.EndpointPropertyMap>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.EndpointPropertyMap>> e = base.augmentation.entrySet().iterator().next(); this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.EndpointPropertyMap>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.EndpointPropertyMap>>singletonMap(e.getKey(), e.getValue()); break; default : this.augmentation = new HashMap<>(base.augmentation); } }
private IRDImpl(IRDBuilder base) { this._meta = base.getMeta(); this._resources = base.getResources(); 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.IRD>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.IRD>> e = base.augmentation.entrySet().iterator().next(); this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.IRD>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.IRD>>singletonMap(e.getKey(), e.getValue()); break; default : this.augmentation = new HashMap<>(base.augmentation); } }
if (other.getCostMap() != null) { return false; } else if(!_costMap.equals(other.getCostMap())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
if (other.getNetworkMap() != null) { return false; } else if(!_networkMap.equals(other.getNetworkMap())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
public EndpointPropertyMap build() { return new EndpointPropertyMapImpl(this); }
public EndpointPropertyMapBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.EndpointPropertyMap>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.EndpointPropertyMap> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public IRDBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.IRD>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.IRD> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
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; }
public CostMapsBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.CostMaps>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.CostMaps> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public NetworkMapsBuilder(NetworkMaps base) { this._networkMap = base.getNetworkMap(); if (base instanceof NetworkMapsImpl) { NetworkMapsImpl impl = (NetworkMapsImpl) 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.alto.rev150404.resources.NetworkMaps> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.NetworkMaps>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public CostMapsBuilder(CostMaps base) { this._costMap = base.getCostMap(); if (base instanceof CostMapsImpl) { CostMapsImpl impl = (CostMapsImpl) 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.alto.rev150404.resources.CostMaps> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.CostMaps>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
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); } }
private CostMapsImpl(CostMapsBuilder base) { this._costMap = base.getCostMap(); 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.CostMaps>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.CostMaps>> e = base.augmentation.entrySet().iterator().next(); this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.CostMaps>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.alto.rev150404.resources.CostMaps>>singletonMap(e.getKey(), e.getValue()); break; default : this.augmentation = new HashMap<>(base.augmentation); } }