@CheckResult
    @NonNull
    public final PowerAdapter limit(int limit) {
        if (limit == Integer.MAX_VALUE) {
            return this;
        }
        if (limit <= 0) {
            return EMPTY;
        }
        return new LimitAdapter(this, limit);
    }
@ CheckResult @ NonNull public final PowerAdapter limit ( int limit ) { if ( limit == Integer . MAX_VALUE ) { return this ; } if ( limit <= 0 ) { return EMPTY ; } return new LimitAdapter ( this , limit ) ; }
Returns a new adapter that presents all items of this adapter, up until the specified limit.
@param limit The item limit.
@return A new adapter.