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 Summary

    Modifier and Type
    Method
    Description
    get(K key)
    Gets the Component associated with key if it exists.
    Get all Components of this repository.
  • Method Details

    • 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