This patch adds an explicit removeAugmentation() method to the builder.
Change-Id: I2111da008485512930dc2cfe551a787106c5f599
Signed-off-by: Robert Varga <rovarga@cisco.com>
public «type.name»«BUILDER» add«augmentField.name.toFirstUpper»(«Class.importedName»<? extends «augmentField.returnType.importedName»> augmentationType, «augmentField.returnType.importedName» augmentation) {
if (augmentation == null) {
- this.«augmentField.name».remove(augmentationType);
- } else {
- this.«augmentField.name».put(augmentationType, augmentation);
+ return remove«augmentField.name.toFirstUpper»(augmentationType);
}
+ this.«augmentField.name».put(augmentationType, augmentation);
+ return this;
+ }
+
+ public «type.name»«BUILDER» remove«augmentField.name.toFirstUpper»(«Class.importedName»<? extends «augmentField.returnType.importedName»> augmentationType) {
+ this.«augmentField.name».remove(augmentationType);
return this;
}
«ENDIF»