Package 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>
@Deprecated public class StringComponentNameProvider<T> extends Object implements ComponentNameProvider<T>
Deprecated.In favor of using lambdas.Generates names by invokingObject.toString()on them. This assumes that the object'sObject.toString()method returns a unique string representation.- Author:
- Trevor Harmon
-
-
Constructor Summary
Constructors Constructor Description StringComponentNameProvider()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetName(T component)Deprecated.Returns the string representation of a component.
-
-
-
Method Detail
-
getName
public String getName(T component)
Deprecated.Returns the string representation of a component.- Specified by:
getNamein interfaceComponentNameProvider<T>- Parameters:
component- the component- Returns:
- a unique string representation
-
-