Skip to content
Nested property util for kotlin
Kotlin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
.travis.yml
LICENSE
README.md
build.gradle.kts
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

knestedproperty Travis Build

Nested property util for kotlin. This extention methods allows you to get names and values of nested propertys in a typesafe manner.

Installation

TODO

Usage

class Foo {
  val bar = Bar()
}

class Bar {
    val value = "FooBar"
}
println((Foo::bar / Bar::value).name) //prints: bar.value

val foo = Foo()
println((Foo::bar / Bar::value).value(foo) //prints: "FooBar"
You can’t perform that action at this time.