All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.introproventures.graphql.jpa.query.schema.relay.PagingArguments Maven / Gradle / Ivy

The newest version!
package com.introproventures.graphql.jpa.query.schema.relay;

import java.util.Collections;
import java.util.List;
import java.util.Map;

public class PagingArguments {

    private final String after;
    private final Integer first;
    private final String before;
    private final Integer last;
    private final List sortFields = Collections.emptyList();

    public PagingArguments(Map arguments) {
        this.after = (String) arguments.get("after");
        this.first = (Integer) arguments.get("first");
        this.before = (String) arguments.get("before");
        this.last = (Integer) arguments.get("last");
    }

    public String getAfter() {
        return after;
    }

    public Integer getFirst() {
        return first;
    }

    public String getBefore() {
        return before;
    }

    public Integer getLast() {
        return last;
    }

    public List getSortFields() {
        return sortFields;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy