Documentation of 'org.jgrapht.io.StringComponentNameProvider' Java class
StringComponentNameProvider
org.jgrapht.io

Class 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 invoking Object.toString() on them. This assumes that the object's Object.toString() method returns a unique string representation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getName(T component)
      Returns the string representation of a component.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringComponentNameProvider

        public StringComponentNameProvider()
    • Method Detail

      • getName

        public java.lang.String getName(T component)
        Returns the string representation of a component.
        Specified by:
        getName in interface ComponentNameProvider<T>
        Parameters:
        component - the component
        Returns:
        a unique string representation

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.