7. Sequences

JavaFX has an extremely useful data type called a sequence that is the subject of this chapter. A sequence is a one-dimensional, ordered collection of zero or more elements that share a common base type. In some ways, a sequence is like a Java array, but it also has some of the characteristics of a Java collection. In the first part this chapter, you see how to create sequences, how to modify them, and how to query them.

Although sequences are the primary multivalue data type in JavaFX, there is also basic support for Java arrays, which are supported only to make it possible to efficiently work with Java methods that require array arguments or return array values. The JavaFX support for Java arrays is discussed in the second part ...

Get JavaFX™ Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.