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

com.synopsys.integration.jira.common.model.JiraQueryParam Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
/*
 * int-jira-common
 *
 * Copyright (c) 2023 Synopsys, Inc.
 *
 * Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide.
 */
package com.synopsys.integration.jira.common.model;

import com.synopsys.integration.jira.common.enumeration.JiraSortOrder;

public class JiraQueryParam {
    private String key;
    private String value;
    private JiraSortOrder jiraSortOrder;

    public JiraQueryParam(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public JiraQueryParam(String key, String value, JiraSortOrder jiraSortOrder) {
        this.key = key;
        this.value = value;
        this.jiraSortOrder = jiraSortOrder;
    }

    public String createQueryString() {
        if (null != jiraSortOrder) {
            return key + "=" + jiraSortOrder.getQueryValuePrefix() + value;
        }
        return key + "=" + value;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy