Interface ComponentRepository<K,​C extends Component<K>>

  • Type Parameters:
    K - the component key type
    C - the component type

    public interface ComponentRepository<K,​C extends Component<K>>
    Generic interface for repositories containing Components.
    Since:
    1.0.0
    • Method Detail

      • getAll

        Set<C> getAll()
        Get all Components of this repository.
        Returns:
        the components
      • get

        C get​(K key)
        Gets the Component associated with key if it exists.
        Parameters:
        key - the key
        Returns:
        the component or null