eu.scape_project.watch.utils
Class ModelUtils

java.lang.Object
  extended by eu.scape_project.watch.utils.ModelUtils

public final class ModelUtils
extends Object

Help methods for the data model.

Author:
Luis Faria

Method Summary
static Map<String,String> entryListToMap(Collection<Entry> entryList)
          Convert a list of entries to a map.
static Collection<Entry> mapToEntryList(Map<String,String> map)
          Convert a map to a list of entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mapToEntryList

public static Collection<Entry> mapToEntryList(Map<String,String> map)
Convert a map to a list of entries.

Parameters:
map - The Map.
Returns:
A list of entries.

entryListToMap

public static Map<String,String> entryListToMap(Collection<Entry> entryList)
Convert a list of entries to a map.

Parameters:
entryList - the list of entries.
Returns:
the map.


Copyright © 2012. All Rights Reserved.