dk.netarkivet.harvester.datamodel
Class NamedUtils

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.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
NamedUtils()
           
 
Method Summary
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
 

Constructor Detail

NamedUtils

public NamedUtils()
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