code: @Override
      public void setDensity(@IntRange(from = 0) final int density) {
          if (density < 0) {
              throw new IllegalArgumentException("Density must not be negative");
          }
          if (this.density != density) {
              this.density = density;
              initBuffers(density);
          }
      }
docs: {@inheritDoc}