join Simple Names
Joins the simple names of a class with the given separator and suffix.
val normalName = ClassName("com.example", "Outer", "Middle", "Inner")
val joinedName = normalName.joinSimpleNames(separator = "_", suffix = "Factory")
println(joinedName) // com.example.Outer_Middle_InnerFactoryContent copied to clipboard
Throws
if the resulting class name is too long to be a valid file name.