class Builder {

        /**
         * Utility constructor.
         */
        private Builder() {
        }

        /**
         * Creates new empty {@link LPosArgs}.
         *
         * @return new {@link LPosArgs}.
         * @see LPosArgs#maxlen(long)
         */
        public static LPosArgs empty() {
            return new LPosArgs();
        }

        /**
         * Creates new {@link LPosArgs} and setting {@literal MAXLEN}.
         *
         * @return new {@link LPosArgs} with {@literal MAXLEN} set.
         * @see LPosArgs#maxlen(long)
         */
        public static LPosArgs maxlen(long count) {
            return new LPosArgs().maxlen(count);
        }

        /**
         * Creates new {@link LPosArgs} and setting {@literal RANK}.
         *
         * @return new {@link LPosArgs} with {@literal RANK} set.
         * @see LPosArgs#rank(long)
         */
        public static LPosArgs rank(long rank) {
            return new LPosArgs().rank(rank);
        }

    }

    /**
     * Limit list scanning to {@code maxlen} entries.
     *
     * @param maxlen number greater 0.
     * @return {@code this}
     */
    public LPosArgs maxlen(long maxlen) {<FILL_FUNCTION_BODY>


        LettuceAssert.isTrue(maxlen > 0, "Maxlen must be greater 0");

        this.maxlen = maxlen;
        return this;
    
<no_super_class>