Package 

Interface SparseMergeable


  • 
    public interface SparseMergeable<T extends Object>
    
                        

    Render-time resolver for themes where every field is optional. Pairs with the conventional pattern: every style property on the inner type is nullable, dark specifies only what differs, and ThemeSet.resolve returns a fully-populated theme by preferring the dark value and falling back to light.

    Mirrors iOS SparseMergeable protocol.

    • Method Summary

      Modifier and Type Method Description
      abstract T mergedOnto(T baseline) Merge overrides (this) onto a baseline.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • mergedOnto

         abstract T mergedOnto(T baseline)

        Merge overrides (this) onto a baseline. Implementations should prefer overrides' non-null values over baseline's.