paging/common/src/main/java/androidx/paging/PagedList.java
public Config build() {
                if (mPageSize < 1) {
                    throw new IllegalArgumentException("Page size must be a positive number");
                }
                if (mPrefetchDistance < 0) {
                    mPrefetchDistance = mPageSize;
                }
                if (mInitialLoadSizeHint < 0) {
                    mInitialLoadSizeHint = mPageSize * 3;
                }
                if (!mEnablePlaceholders && mPrefetchDistance == 0) {
                    throw new IllegalArgumentException("Placeholders and prefetch are the only ways"
                            + " to trigger loading of more data in the PagedList, so either"
                            + " placeholders must be enabled, or prefetch distance must be > 0.");
                }

                return new Config(mPageSize, mPrefetchDistance,
                        mEnablePlaceholders, mInitialLoadSizeHint);
            }
/**
             * Creates a {@link Config} with the given parameters.
             *
             * @return A new Config.
             */
Creates a  Config with the given parameters.
@return A new Config.
Creates a Config with the given parameters . @return A new Config .
public Config build() {
                if (mPageSize < 1) {
                    throw new IllegalArgumentException("Page size must be a positive number");
                }
                if (mPrefetchDistance < 0) {
                    mPrefetchDistance = mPageSize;
                }
                if (mInitialLoadSizeHint < 0) {
                    mInitialLoadSizeHint = mPageSize * 3;
                }
                if (!mEnablePlaceholders && mPrefetchDistance == 0) {
                    throw new IllegalArgumentException("Placeholders and prefetch are the only ways"
                            + " to trigger loading of more data in the PagedList, so either"
                            + " placeholders must be enabled, or prefetch distance must be > 0.");
                }
                return new Config(mPageSize, mPrefetchDistance,
                        mEnablePlaceholders, mInitialLoadSizeHint);
            }
public Config build ( ) { if ( mPageSize < 1 ) { throw new IllegalArgumentException ( "Page size must be a positive number" ) ; } if ( mPrefetchDistance < 0 ) { mPrefetchDistance = mPageSize ; } if ( mInitialLoadSizeHint < 0 ) { mInitialLoadSizeHint = mPageSize * 3 ; } if ( ! mEnablePlaceholders && mPrefetchDistance == 0 ) { throw new IllegalArgumentException ( "Placeholders and prefetch are the only ways" + " to trigger loading of more data in the PagedList, so either" + " placeholders must be enabled, or prefetch distance must be > 0." ) ; } return new Config ( mPageSize , mPrefetchDistance , mEnablePlaceholders , mInitialLoadSizeHint ) ; }
Creates a {@link Config} with the given parameters.
Creates a { @link Config } with the given parameters .