Package org.n52.janmayen.component
Interface ComponentFactory<K,C extends Component<K>>
-
- Type Parameters:
C- the component typeK- the key type
- All Superinterfaces:
Keyed<K>
- All Known Subinterfaces:
SingleTypeComponentFactory<K,C>
public interface ComponentFactory<K,C extends Component<K>> extends Keyed<K>
Interface forComponentfactories.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Ccreate(K key)Creates theComponentassociated with the suppliedkey.default Set<C>createAll()Creates allComponents supported by this factory.Set<K>getKeys()Get all keys that are supported by this factory.default booleanhas(K key)Checks if this factory supports the suppliedkey.
-
-
-
Method Detail
-
has
default boolean has(K key)
Checks if this factory supports the suppliedkey.- Parameters:
key- the key- Returns:
- if this factory supports the key.
-
createAll
default Set<C> createAll()
Creates allComponents supported by this factory.- Returns:
- the components
-
-