Interface Named

All Superinterfaces:
Serializable
All Known Implementing Classes:
Command, CommandSet, Remote

public interface Named extends Serializable
This interface describes something that has a name, using the usual semantics.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Class containing a Comparator implementing standard alphabetical, case insensitive order.
    static class 
    Class containing a Comparator implementing standard alphabetical, case sensitive order.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the name of the object.
    static <T extends Named>
    void
    populateMap(Map<String,T> map, Collection<T> collection)
    Populate the map as first argument with the elements contained in the Collection in the second argument.
    static <T extends Named>
    List<T>
    toList(T thing)
    Generate a Map<String, T> map containing one element, the argument.
    static <T extends Named>
    Map<String,T>
    toMap(Collection<T> collection)
    Create a Map<String, T> and populate with the elements of the second argument.
    static <T extends Named>
    Map<String,T>
    toMap(T thing)
    Generate a Map<String, T> map containing one element, the argument.
  • Method Details

    • toMap

      static <T extends Named> Map<String,T> toMap(T thing)
      Generate a Map<String, T> map containing one element, the argument.
      Type Parameters:
      T - type extending Named
      Parameters:
      thing -
      Returns:
      Map<String, T>
    • toList

      static <T extends Named> List<T> toList(T thing)
      Generate a Map<String, T> map containing one element, the argument.
      Type Parameters:
      T -
      Parameters:
      thing -
      Returns:
      Map<String, T>
    • populateMap

      static <T extends Named> void populateMap(Map<String,T> map, Collection<T> collection)
      Populate the map as first argument with the elements contained in the Collection in the second argument.
      Type Parameters:
      T -
      Parameters:
      map -
      collection -
    • toMap

      static <T extends Named> Map<String,T> toMap(Collection<T> collection)
      Create a Map<String, T> and populate with the elements of the second argument.
      Type Parameters:
      T -
      Parameters:
      collection - Collection of Ts.
      Returns:
    • getName

      String getName()
      Return the name of the object.
      Returns: