CopaServer
Change of Plan Application
 All Classes Functions Pages
Static Public Member Functions | List of all members
unicopa.copa.base.util.Util Class Reference

A collection of utility methods related to the base classes. More...

Collaboration diagram for unicopa.copa.base.util.Util:
Collaboration graph

Static Public Member Functions

static List< List
< SingleEventUpdate > > 
sortUpdatesAsChains (List< SingleEventUpdate > updates)
 Sort a list of updates into chains of associated updates. More...
 
static void sortUpdatesByDate (List< SingleEventUpdate > updates)
 Sort a list of updates by their creation date. More...
 

Detailed Description

A collection of utility methods related to the base classes.

Author
Felix Wiemuth

Member Function Documentation

static List<List<SingleEventUpdate> > unicopa.copa.base.util.Util.sortUpdatesAsChains ( List< SingleEventUpdate updates)
static

Sort a list of updates into chains of associated updates.

If update B updates a SingleEvent of another update A in the list 'updates', the resulting list will contain a list with A-B in it. All updates that origin at one SingleEvent will get into the same list, ordered by their date of occurence. The outer list is not sorted.

Parameters
updatesthe list of updates to sort
Returns
static void unicopa.copa.base.util.Util.sortUpdatesByDate ( List< SingleEventUpdate updates)
static

Sort a list of updates by their creation date.

Parameters
updatesthe list of updates to sort

The documentation for this class was generated from the following file: