Class Named<T>

  • Type Parameters:
    T - The type of the named object.

    public class Named<T>
    extends java.lang.Object
    A named object of type T.
    Author:
    Christian Fries
    • Constructor Summary

      Constructors 
      Constructor Description
      Named​(java.lang.String name, T object)
      Create the named object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()
      Get the object.
      java.lang.String getName()
      Get the name of the object.
      • Methods inherited from class java.lang.Object

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

      • Named

        public Named​(java.lang.String name,
                     T object)
        Create the named object.
        Parameters:
        name - Name of the object.
        object - The object.
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name of the object.
        Returns:
        the name
      • get

        public T get()
        Get the object.
        Returns:
        the object.