org.jgrapht.graph
Class ClassBasedVertexFactory<V>
java.lang.Object
org.jgrapht.graph.ClassBasedVertexFactory<V>
- All Implemented Interfaces:
- VertexFactory<V>
public class ClassBasedVertexFactory<V>
- extends Object
- implements VertexFactory<V>
A VertexFactory
for producing vertices by using a class as a factory.
- Since:
- July 5, 2007
- Author:
- Guillaume Boulmier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassBasedVertexFactory
public ClassBasedVertexFactory(Class<? extends V> vertexClass)
createVertex
public V createVertex()
- Description copied from interface:
VertexFactory
- Creates a new vertex.
- Specified by:
createVertex
in interface VertexFactory<V>
- Returns:
- the new vertex
- See Also:
VertexFactory.createVertex()
Copyright © 2013. All rights reserved.