org.jgrapht.io
Class StringComponentNameProvider<T>
- java.lang.Object
-
- org.jgrapht.io.StringComponentNameProvider<T>
-
- Type Parameters:
T- the component type
- All Implemented Interfaces:
- ComponentNameProvider<T>
- Direct Known Subclasses:
- StringComponentNameProvider
public class StringComponentNameProvider<T> extends java.lang.Object implements ComponentNameProvider<T>
Generates names by invokingObject.toString()on them. This assumes that the object'sObject.toString()method returns a unique string representation.
-
-
Constructor Summary
Constructors Constructor and Description StringComponentNameProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetName(T component)Returns the string representation of a component.
-
-
-
Method Detail
-
getName
public java.lang.String getName(T component)
Returns the string representation of a component.- Specified by:
getNamein interfaceComponentNameProvider<T>- Parameters:
component- the component- Returns:
- a unique string representation
-
-
DataMelt 3.0 © DataMelt by jWork.ORG