RFR: 8320796: CssMetaData.combine() [v5]

Andy Goryachev angorya at openjdk.org
Tue Nov 28 20:34:31 UTC 2023


> Provides a public utility method for use by the skins (core and custom) to simplify initialization of styleable properties.
> 
> 
> + /**
> + * Utility method which combines CssMetaData items in one unmodifiable list with the size equal to the number
> + * of items it holds (i.e. with no unnecessary overhead).
> + *
> + * @param list the css metadata items, usually from the parent, not nullable
> + * @param items the additional items
> + * @return the unmodifiable list containing all of the items
> + *
> + * @since 22
> + */
> + public static List<CssMetaData<? extends Styleable, ?>> combine(
> + List<CssMetaData<? extends Styleable, ?>> list,
> + CssMetaData<? extends Styleable, ?>... items)

Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:

  javadoc

-------------

Changes:
  - all: https://git.openjdk.org/jfx/pull/1296/files
  - new: https://git.openjdk.org/jfx/pull/1296/files/8987a125..adb940a3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=1296&range=04
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1296&range=03-04

  Stats: 15 lines in 1 file changed: 12 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jfx/pull/1296.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1296/head:pull/1296

PR: https://git.openjdk.org/jfx/pull/1296


More information about the openjfx-dev mailing list