catalog.view.util
Class ViewUtils

java.lang.Object
  extended bycatalog.view.util.ViewUtils

public class ViewUtils
extends java.lang.Object

Utility class for the presentation tier.

Author:
Derek Y. Shen

Constructor Summary
ViewUtils()
           
 
Method Summary
static java.util.List convertToList(java.util.Set orig)
          Convert a set to a list.
static java.util.Set convertToSet(java.util.List orig)
          Convert a list to a set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewUtils

public ViewUtils()
Method Detail

convertToSet

public static java.util.Set convertToSet(java.util.List orig)
Convert a list to a set.

Parameters:
orig - the list to be converted
Returns:
the set converted from the list

convertToList

public static java.util.List convertToList(java.util.Set orig)
Convert a set to a list.

Parameters:
orig - the set to be converted
Returns:
the list converted from the set


Copyright (c) 2004 The JCatalog Project.