Interface RegistryHolder<T,E>

Type Parameters:
T - the registry's type
E - the type of the registry entry (for inlined values)
All Known Subinterfaces:
RegistryHolder.Inlined<T,E>, RegistryHolder.Reference<T,E>

@Experimental public sealed interface RegistryHolder<T,E> permits RegistryHolder.Reference<T,E>, RegistryHolder.Inlined<T,E>
During the registry loading phase, some values can be references to values to-be-loaded in the future, or inlined, anonymous values that already exist. This type (and subtypes) represent that structure.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A holder that contains an inlined registry entry, an anonymous value (does not have a key).
    static interface 
    A holder that references a registry value by key, but does not have the entry itself.