Class TypeUtils


  • public final class TypeUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.squareup.javapoet.MethodSpec getter​(java.lang.String name, com.squareup.javapoet.FieldSpec spec, boolean fluent)  
      static <S> javax.lang.model.type.TypeMirror mirror​(S object, java.util.function.Function<S,​? extends java.lang.Class<?>> function)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypeUtils

        public TypeUtils()
    • Method Detail

      • mirror

        public static <S> javax.lang.model.type.TypeMirror mirror​(S object,
                                                                  java.util.function.Function<S,​? extends java.lang.Class<?>> function)
      • getter

        public static com.squareup.javapoet.MethodSpec getter​(java.lang.String name,
                                                              com.squareup.javapoet.FieldSpec spec,
                                                              boolean fluent)