com.im.df.api.ddl
Class DFItems
java.lang.Object
com.im.df.api.ddl.DFItems
public final class DFItems
- extends Object
|
Method Summary |
static
|
alphabeticallySortedCopy(List<T> items)
Returns alphabetically sorted copy of the given list of items by their names, ignoring case
differences. |
static
|
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 |
DFItems
public DFItems()
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 atcapabilityClass - 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