Skip to content

richarddd/knestedproperty

Repository files navigation

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"

About

Nested property util for kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages