Class StringComponentNameProvider<T>

  • Type Parameters:
    T - the component type
    All Implemented Interfaces:
    ComponentNameProvider<T>

    @Deprecated
    public class StringComponentNameProvider<T>
    extends java.lang.Object
    implements ComponentNameProvider<T>
    Deprecated.
    In favor of using lambdas.
    Generates names by invoking Object.toString() on them. This assumes that the object's Object.toString() method returns a unique string representation.
    Author:
    Trevor Harmon
    • Method Summary

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

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

      • StringComponentNameProvider

        public StringComponentNameProvider()
        Deprecated.
    • Method Detail

      • getName

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