package Ġimplicit . decorator Ċ Ċ import Ġimplicit . interceptor . generator . ToString Interceptor Ċ import Ġnet . byte buddy . dynamic . Dynamic Type Ċ import Ġnet . byte buddy . dynamic . Dynamic Type . Builder Ċ import Ġnet . byte buddy . implementation . Method Deleg ation Ċ import Ġnet . byte buddy . matcher . Element Matchers Ċ import Ġjava . util . function . Function ĊĊ Ċ class ĠAdd ToString Decorator < T >( private Ġval Ġtype : ĠClass <* >) Ġ: ĠFunction < Builder < T >, ĠBuilder < T >> Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġapply ( builder : ĠDynamic Type . Builder < T >): ĠDynamic Type . Builder < T > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġbuilder . method ( Element Matchers . is ToString ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. intercept ( Method Deleg ation . to ( ToString Interceptor )) ĊĠĠĠ Ġ} Ċ Ċ } Ċ