RadialGradientBuilder.stops() only accepts List, not array

XMLWordPrintable

      I want to write:

      .fill(new RadialGradientBuilder()
          .centerX(37).centerY(41).radius(53.625).proportional(false)
          .stops(
              new Stop(0.0000, Color.rgb(0xFF, 0xFF, 0xFF, 1.0)),
              new Stop(0.2033, Color.rgb(0xFE, 0xFF, 0xFD, 1.0)),
              new Stop(0.2765, Color.rgb(0xFD, 0xFD, 0xF6, 1.0)),
          ).build()

      ...but the builder's stops() method above has no override for Stop..., only for List<Stop>, which is very inconvenient (needs Arrays.asList(...)) and not consistent with the other builder APIs, so I guess that's a bug.

            Assignee:
            Eamonn McManus (Inactive)
            Reporter:
            Osvaldo Pinali Doederlein (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: