public class ViolationProviderUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> List<ViolationProvider> |
from(List<T> list,
BiFunction<Integer,T,ViolationProvider> mapper)
Creates
ViolationProviders from collection using a mapping function. |
public static <T> List<ViolationProvider> from(List<T> list, BiFunction<Integer,T,ViolationProvider> mapper)
ViolationProviders from collection using a mapping function. The mapping
function receives a pair of (i, o) where i is the index of current
iterated element and o is the iterated element. The function must return a ViolationProvider.T - type of elements from collectionlist - collection to be mappedmapper - mapping functionViolationProviderCopyright © 2020. All rights reserved.