Extension Methods

Potential Pitfall Extensions are Resolved Statically

Top-Level Extensions

Lazy extension property workaround

Sample extending Java 7 Path class

Sample extending long to render a human readable string

Sample extending Java 8 Temporal classes to render an ISO formatted string

07Using extension functions to improve readability

Extension functions to Companion Objects appearance of Static functions

Extensions for easier reference View from code