Class ColorRegistry

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ColorRegistry
    extends java.lang.Object
    implements java.io.Serializable
    Memoizes all native color instances
    See Also:
    Serialized Form
    • Method Detail

      • createForTesting

        public static ColorRegistry createForTesting()
        Creates a ColorRegistry containing default implementations for all NativeColorIds.

        Only for use in testing. In real compilations, certain native colors have fields that vary from compilation-to-compilation (like whether the "Number" object is invalidating), so should use the builder()} instead.