Why are style classes stored in a List instead of a Set?

Tom Schindl tom.schindl at bestsolution.at
Thu May 21 07:34:09 UTC 2015

On 21.05.15 09:03, Roland C wrote:
> Hello,
> the problem is that it isn't clear how the mechanism works. A list
> suggests that there is an order. But there isn't. The only order that is

And I repeat order might make a difference if you use selectors who
depend on order (although those selectors might not be implemented in
JavaFX yet) beside that if HTML treats them as a List JavaFX should as
well because who knows if in a future version of CSS/HTML the order gets
important you'll have a big problem in JavaFX because you presented a
Set<String> in your interface and hence you'd have to break the API.


Thomas Schindl, CTO
BestSolution.at EDV Systemhaus GmbH
Eduard-Bodem-Gasse 5-7, A-6020 Innsbruck
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck

More information about the openjfx-dev mailing list