kmongo / org.litote.kmongo.property / KMapPropertyPath

KMapPropertyPath

open class KMapPropertyPath<T, K, R, MEMBER : KPropertyPath<T, R?>> : KPropertyPath<T, Map<out K?, R>?> (source)

Base class for map property path.

Constructors

<init>

Base class for map property path.

KMapPropertyPath(previous: KPropertyPath<T, *>?, property: KProperty1<*, Map<out K, R>?>)

Functions

keyProjection

Key projection of map. Sample: p.keyProjection(Locale.ENGLISH) / Gift::amount

fun keyProjection(key: K): MEMBER

memberWithAdditionalPath

To be overridden to returns the right type.

open fun memberWithAdditionalPath(additionalPath: String): MEMBER

Inheritors

KMapSimplePropertyPath

A property path for a map property.

class KMapSimplePropertyPath<T, K, R> : KMapPropertyPath<T, K, R, KPropertyPath<T, R?>>