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

graphql.relay.ConnectionCursor Maven / Gradle / Ivy

There is a newer version: 2.4.0-no-slf4j
Show newest version
package graphql.relay;


public class ConnectionCursor {

    private final String value;

    public ConnectionCursor(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    @Override
    public boolean equals(Object o) {


        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ConnectionCursor that = (ConnectionCursor) o;

        if (value != null ? !value.equals(that.value) : that.value != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return value != null ? value.hashCode() : 0;
    }

    @Override
    public String toString() {
        return value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy