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

com.synopsys.integration.jira.common.model.response.TransitionsResponseModel 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.response;

import java.util.List;
import java.util.Optional;

import com.synopsys.integration.jira.common.model.JiraResponseModel;
import com.synopsys.integration.jira.common.model.components.TransitionComponent;

public class TransitionsResponseModel extends JiraResponseModel {
    private String expand;
    private List transitions;

    public TransitionsResponseModel() {
    }

    public TransitionsResponseModel(String expand, List transitions) {
        this.expand = expand;
        this.transitions = transitions;
    }

    public String getExpand() {
        return expand;
    }

    public List getTransitions() {
        return transitions;
    }

    public final Optional findFirstTransitionByName(String name) {
        return getTransitions().stream()
                   .filter(transition -> name.equals(transition.getName()))
                   .findFirst();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy