@Override public Neighbor build() { return new NeighborImpl(this); }
@Override public Address build() { return new AddressImpl(this); }
@Override public NeighborBuilder getBuilder(InstanceIdentifier<Neighbor> id) { return new NeighborBuilder(); }
NeighborImpl(NeighborBuilder base) { if (base.key() != null) { this.key = base.key(); } else { this.key = new NeighborKey(base.getIp()); } this._ip = key.getIp(); this._linkLayerAddress = base.getLinkLayerAddress(); this._origin = base.getOrigin(); this.augmentation = ImmutableMap.copyOf(base.augmentation); }
public NeighborBuilder addAugmentation(Class<? extends Augmentation<Neighbor>> augmentationType, Augmentation<Neighbor> augmentationValue) { if (augmentationValue == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentationValue); return this; }
public AddressBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ip.rev140616.interfaces.state._interface.ipv4.Address>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ip.rev140616.interfaces.state._interface.ipv4.Address> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
@Override @Nonnull public AddressBuilder getBuilder(@Nonnull InstanceIdentifier<Address> id) { return new AddressBuilder(); }
private AddressImpl(AddressBuilder base) { if (base.key() == null) { this.key = new AddressKey( base.getIp() ); this._ip = base.getIp(); } else { this.key = base.key(); this._ip = key.getIp(); } this._origin = base.getOrigin(); this._subnet = base.getSubnet(); this.augmentation = ImmutableMap.copyOf(base.augmentation); }
private NeighborImpl(NeighborBuilder base) { if (base.key() == null) { this.key = new NeighborKey( base.getIp() ); this._ip = base.getIp(); } else { this.key = base.key(); this._ip = key.getIp(); } this._linkLayerAddress = base.getLinkLayerAddress(); this._origin = base.getOrigin(); this.augmentation = ImmutableMap.copyOf(base.augmentation); }
@Override public Neighbor build() { return new NeighborImpl(this); }
@Override public Address build() { return new AddressImpl(this); }
public NeighborBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ip.rev140616.interfaces.state._interface.ipv4.Neighbor>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ip.rev140616.interfaces.state._interface.ipv4.Neighbor> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public AddressBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ip.rev140616.interfaces.state._interface.ipv4.Address>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ip.rev140616.interfaces.state._interface.ipv4.Address> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public Neighbor build() { return new NeighborImpl(this); }
public Address build() { return new AddressImpl(this); }
public NeighborBuilder addAugmentation(Class<? extends Augmentation<Neighbor>> augmentationType, Augmentation<Neighbor> augmentationValue) { if (augmentationValue == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentationValue); return this; }
public AddressBuilder addAugmentation(Class<? extends Augmentation<Address>> augmentationType, Augmentation<Address> augmentationValue) { if (augmentationValue == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentationValue); return this; }
public Neighbor build() { return new NeighborImpl(this); }
public Address build() { return new AddressImpl(this); }