com.synopsys.integration.jira.common.model.response.TransitionsResponseModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of int-jira-common Show documentation
Show all versions of int-jira-common Show documentation
A library for using various capabilities of Jira.
/*
* 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