Class StreamUtils
java.lang.Object
org.qubership.atp.dataset.service.direct.importexport.utils.StreamUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractIds(Collection<T> entities, Function<T, UUID> extractor) Extract id's from any type entities.toEntityListMap(Iterable<T> entities, Function<T, UUID> keyExtractor) static <T,R> Map <R, T> toEntityMap(Iterable<T> entities, Function<T, R> keyExtractor) toNameEntityMap(Iterable<T> entities, Function<T, String> keyExtractor) toNameIdEntityMap(Iterable<T> entities, Function<T, String> keyExtractor, Function<T, UUID> valueExtractor)
-
Constructor Details
-
StreamUtils
public StreamUtils()
-
-
Method Details
-
extractIds
Extract id's from any type entities.- Type Parameters:
T- processed entities type- Parameters:
entities- input entitiesextractor- id extractor- Returns:
- result set
-
toNameIdEntityMap
-
toNameEntityMap
-
toEntityMap
-
toEntityListMap
-