Class TRegistry<T,R>

java.lang.Object
com.ticxo.modelengine.api.utils.registry.TRegistry<T,R>
Direct Known Subclasses:
MountControllerRegistry, TSingletonRegistry

public abstract class TRegistry<T,R> extends Object
  • Field Details

    • registry

      protected final Map<String,T> registry
    • defaultItem

      protected T defaultItem
  • Constructor Details

    • TRegistry

      public TRegistry()
  • Method Details

    • register

      public void register(String id, T item)
    • registerAndDefault

      public void registerAndDefault(String id, T item)
    • get

      public R get(String id)
    • getDefault

      public R getDefault()
    • getKeys

      public Set<String> getKeys()
    • convert

      protected abstract R convert(T item)