UidsHelper

object UidsHelper

Functions

Build a String with the single quoted uids separated by commas and spaces.

Link copied to clipboard

Remove from the given Collection the objects which uid is contained in the given List of uids.

Link copied to clipboard

Find an object with uid from a collection and returns it. Returns null if the object can`t be find.

Link copied to clipboard
fun <P, C : ObjectWithUidInterface> getChildrenUids(parentList: Collection<P>, childExtractor: (P) -> List<C>): Set<String>

Returns a Set of uids of the children selected by a lambda function.

Link copied to clipboard

Return the uid of the object if the object is not null. If it is null, return null.

Link copied to clipboard

Returns a Set of uids of the given objects.

Link copied to clipboard

Returns a List of uids of the given objects.

Link copied to clipboard
fun <O : ObjectWithUidInterface> mapByParentUid(objects: Collection<O>, parentExtractor: Transformer<O, String>): Map<String, List<O>>

Map a Collection with the a custom key extracted from the parentExtractor.

Link copied to clipboard