Always include default factory
This commit is contained in:
@ -13,4 +13,8 @@ public interface DirectedGraphFactory<V, A> {
|
|||||||
* @return der {@code DirectedGraph}, der von dieses Fabrik erzeugt wird.
|
* @return der {@code DirectedGraph}, der von dieses Fabrik erzeugt wird.
|
||||||
*/
|
*/
|
||||||
DirectedGraph<V, A> createDirectedGraph();
|
DirectedGraph<V, A> createDirectedGraph();
|
||||||
|
|
||||||
|
static <V, A> DirectedGraphFactory<V, A> defaultFactory() {
|
||||||
|
return DirectedGraphImpl::new;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user