gsonpath.util.TypeNameExt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gsonpath-compiler-base Show documentation
Show all versions of gsonpath-compiler-base Show documentation
An annotation processor which generates Type Adapters for the Google Gson library
package gsonpath.util
import com.squareup.javapoet.ClassName
import com.squareup.javapoet.ParameterizedTypeName
import com.squareup.javapoet.TypeName
object TypeNameExt {
fun createMap(keyTypeName: TypeName, valueTypeName: TypeName): TypeName {
return ParameterizedTypeName.get(ClassName.get(Map::class.java), keyTypeName, valueTypeName)
}
}