Allow base type builders to be used fluently
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / type / BitsTypeBuilder.java
index 12be6a2c6fac1a59c04bcbac0135d2489e1457a3..04ee96a53f4075c7a02d83a99ba59e8d3f8b14f0 100644 (file)
@@ -24,10 +24,11 @@ public final class BitsTypeBuilder extends TypeBuilder<BitsTypeDefinition> {
         super(null, path);
     }
 
-    public void addBit(@Nonnull final Bit item) {
+    public BitsTypeBuilder addBit(@Nonnull final Bit item) {
         Preconditions.checkArgument(item.getPosition() != null, "Bit %s has null position", item);
 
         builder.put(item.getName(), item);
+        return this;
     }
 
     @Override