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 String
getName(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:
getName
in interfaceComponentNameProvider<T>
- Parameters:
component
- the component- Returns:
- a unique string representation
-
-