Class AsyncResponseClassSpec

    • Method Detail

      • poetSpec

        public com.squareup.javapoet.TypeSpec poetSpec()
        Returns:
        The actual class specification generated from a PoetSpec.builder()... implementation
      • className

        public com.squareup.javapoet.ClassName className()
        Returns:
        The Poet representation of the class being generated, this may be used by other classes
      • getAsyncClientInterfaceName

        protected com.squareup.javapoet.ClassName getAsyncClientInterfaceName()
        Returns:
        A Poet ClassName for the async client interface
      • fields

        protected Stream<com.squareup.javapoet.FieldSpec> fields()
      • asyncClientInterfaceField

        protected com.squareup.javapoet.FieldSpec asyncClientInterfaceField()
      • lastPageField

        protected com.squareup.javapoet.FieldSpec lastPageField()
      • publicConstructor

        protected com.squareup.javapoet.MethodSpec publicConstructor()
      • privateConstructor

        protected com.squareup.javapoet.MethodSpec privateConstructor()
      • nextPageFetcherArgument

        protected String nextPageFetcherArgument()
      • nextPageFetcherClass

        protected com.squareup.javapoet.TypeSpec.Builder nextPageFetcherClass()
        aW Generates a inner class that implements AsyncPageFetcher. This is a helper class that can be used to find if there are more pages in the response and to get the next page if exists.