com.im.df.api 5.9

com.im.df.api.ddl
Class DFItems

java.lang.Object
  extended by com.im.df.api.ddl.DFItems

public final class DFItems
extends Object


Constructor Summary
DFItems()
           
 
Method Summary
static
<T extends DFItem>
List<T>
alphabeticallySortedCopy(List<T> items)
          Returns alphabetically sorted copy of the given list of items by their names, ignoring case differences.
static
<T extends DFItem,C extends DFCapability>
List<T>
findItemsWithCapability(List<T> items, Class<C> capabilityClass)
          Filter the specified items so that only those with the specified capability are returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DFItems

public DFItems()
Method Detail

findItemsWithCapability

public static <T extends DFItem,C extends DFCapability> List<T> findItemsWithCapability(List<T> items,
                                                                                        Class<C> capabilityClass)
Filter the specified items so that only those with the specified capability are returned.

Parameters:
items - the items to look at
capabilityClass - the required capability
Returns:
the items with that capability

alphabeticallySortedCopy

public static <T extends DFItem> List<T> alphabeticallySortedCopy(List<T> items)
Returns alphabetically sorted copy of the given list of items by their names, ignoring case differences.

Parameters:
items - unsorted list
Returns:
sorted list

com.im.df.api 5.9