private MacImpl(MacBuilder base) { this._mac = base.getMac(); this.augmentation = ImmutableMap.copyOf(base.augmentation); }
public MacBuilder addAugmentation(Class<? extends Augmentation<Mac>> augmentationType, Augmentation<Mac> augmentationValue) { if (augmentationValue == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentationValue); return this; }
new MacBuilder().setMac(new MacAddress(byteArrayToMacSeparated(address))) .build()).build();
return newEidBuilderRemote(MacAfi.class, vni) .setAddress( new MacBuilder().setMac(new MacAddress(byteArrayToMacSeparated(address))) .build()).build();
return newRemoteEidBuilder(MacAfi.class, vni) .setAddress( new MacBuilder().setMac(new MacAddress(byteArrayToMacSeparated(address))) .build()).build();
public MacBuilder addAugmentation(Class<? extends Augmentation<Mac>> augmentationType, Augmentation<Mac> augmentationValue) { if (augmentationValue == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentationValue); return this; }
MacImpl(MacBuilder base) { this._mac = base.getMac(); this.augmentation = ImmutableMap.copyOf(base.augmentation); }
return newEidBuilderLocal(MacAfi.class, vni) .setAddress( new MacBuilder().setMac(new MacAddress(byteArrayToMacSeparated(address))) .build()).build();