Class NamedUtils


  • public class NamedUtils
    extends java.lang.Object
    Utilities for handling named objects. Named objects are objects in our datamodel, which have a name and a comment.
    • Constructor Summary

      Constructors 
      Constructor Description
      NamedUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends Named>
      void
      sortNamedObjectList​(java.util.Locale loc, java.util.List<T> list)
      Sorts List of Named objects according to language defined in parameter loc.
      • Methods inherited from class java.lang.Object

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

      • sortNamedObjectList

        public static <T extends Named> void sortNamedObjectList​(java.util.Locale loc,
                                                                 java.util.List<T> list)
        Sorts List of Named objects according to language defined in parameter loc. The sorting is done via a compare function on named objects. The compare function uses Collator for sorting according to language in loc. The compare function is used as Comparator for the Collection Sorting on Named object Lists.
        Parameters:
        loc - contains the language sorting must adhere to
        list - contains list to be sorted. Objects in the List must implement Named