Class BaseGetDiffBuilder<PARAMS>

    • Field Detail

      • maxRecords

        protected java.lang.Integer maxRecords
      • fromRefName

        protected java.lang.String fromRefName
      • fromHashOnRef

        protected java.lang.String fromHashOnRef
      • toRefName

        protected java.lang.String toRefName
      • toHashOnRef

        protected java.lang.String toHashOnRef
    • Constructor Detail

      • BaseGetDiffBuilder

        protected BaseGetDiffBuilder​(java.util.function.BiFunction<PARAMS,​java.lang.String,​PARAMS> paramsForPage)
    • Method Detail

      • maxRecords

        public GetDiffBuilder maxRecords​(int maxRecords)
        Description copied from interface: PagingBuilder
        Sets the maximum number of records to be returned in a single response object from the PagingBuilder.get() method.

        This setter reflects the OpenAPI parameter maxRecords in a paged request.

        Specified by:
        maxRecords in interface PagingBuilder<GetDiffBuilder,​org.projectnessie.model.DiffResponse,​org.projectnessie.model.DiffResponse.DiffEntry>
      • get

        public org.projectnessie.model.DiffResponse get()
                                                 throws org.projectnessie.error.NessieNotFoundException
        Description copied from interface: PagingBuilder
        Advanced usage, for manual paging: fetches a response chunk (might be one page or complete response depending on use case and parameters), but callers must implement paging on their own, if necessary. If in doubt, use PagingBuilder.stream() instead.
        Specified by:
        get in interface GetDiffBuilder
        Specified by:
        get in interface PagingBuilder<GetDiffBuilder,​org.projectnessie.model.DiffResponse,​org.projectnessie.model.DiffResponse.DiffEntry>
        Throws:
        org.projectnessie.error.NessieNotFoundException
      • params

        protected abstract PARAMS params()
      • get

        protected abstract org.projectnessie.model.DiffResponse get​(PARAMS p)
                                                             throws org.projectnessie.error.NessieNotFoundException
        Throws:
        org.projectnessie.error.NessieNotFoundException
      • stream

        public java.util.stream.Stream<org.projectnessie.model.DiffResponse.DiffEntry> stream()
                                                                                       throws org.projectnessie.error.NessieNotFoundException
        Description copied from interface: PagingBuilder
        Retrieve entries/results as a Java Stream, uses automatic paging.
        Specified by:
        stream in interface PagingBuilder<GetDiffBuilder,​org.projectnessie.model.DiffResponse,​org.projectnessie.model.DiffResponse.DiffEntry>
        Throws:
        org.projectnessie.error.NessieNotFoundException