public abstract class Lists extends Object
Modifier and Type | Method and Description |
---|---|
static <V> List<V> |
filter(List<V> original,
IItemFilter<V> filter)
Returns a list filtered by the current
IItemFilter |
static <V> List<V> |
fromCollection(Collection<V> collection)
Returns a list using the items in the given collection.
|
static <From,To> List<To> |
transform(List<From> list,
Transformer<From,To> transformer)
Returns a new
List using the given transformer to transform the original elements into the new ones. |
public static <From,To> List<To> transform(List<From> list, Transformer<From,To> transformer) throws PortalException
List
using the given transformer to transform the original elements into the new ones.list
- the original list.transformer
- the transformer to be used.List
using the given transformer to transform the original elements into the new ones.PortalException
public static <V> List<V> fromCollection(Collection<V> collection)
collection
- the collection of items.public static <V> List<V> filter(List<V> original, IItemFilter<V> filter) throws PortalException
IItemFilter
original
- original listfilter
- filter to be applied on original listPortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.