Class Named<T>

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

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

      • Named

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

      • getName

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

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