import static org.opendaylight.mdsal.binding.model.ri.Types.STRING;
import static extension org.apache.commons.text.StringEscapeUtils.escapeJava
-import com.google.common.base.MoreObjects
import com.google.common.base.Preconditions
import com.google.common.collect.ImmutableList
import com.google.common.collect.Lists
return new «genTO.name»(«Base64.importedName».getDecoder().decode(defaultValue));
«ELSEIF EMPTY_TYPE.equals(propType)»
«Preconditions.importedName».checkArgument(defaultValue.isEmpty(), "Invalid value %s", defaultValue);
- return new «genTO.name»(«Empty.importedName».getInstance());
+ return new «genTO.name»(«Empty.importedName».value());
«ELSE»
return new «genTO.name»(new «propType.importedName»(defaultValue));
«ENDIF»
«IF !properties.empty»
@«OVERRIDE.importedName»
public «STRING.importedName» toString() {
- final «MoreObjects.importedName».ToStringHelper helper = «MoreObjects.importedName».toStringHelper(«type.importedName».class);
+ final var helper = «MOREOBJECTS.importedName».toStringHelper(«type.importedName».class);
«FOR property : properties»
«CODEHELPERS.importedName».appendValue(helper, "«property.fieldName»", «property.fieldName»);
«ENDFOR»