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

org.jfrog.build.api.dependency.PatternResult Maven / Gradle / Ivy

There is a newer version: 2.41.23
Show newest version
package org.jfrog.build.api.dependency;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Represents group of results for pattern request in {@link BuildPatternArtifactsRequest}. Part of {@link BuildPatternArtifacts}.
 *
 * @author jbaruch
 * @see BuildPatternArtifacts
 * @since 16/02/12
 */
public class PatternResult implements Serializable {

    private List patternArtifacts;

    public PatternResult() {
        patternArtifacts = new ArrayList<>();
    }

    public PatternResult(List patternArtifacts) {
        this.patternArtifacts = patternArtifacts;
    }

    public List getPatternArtifacts() {
        return patternArtifacts;
    }

    public void setPatternArtifacts(List patternArtifacts) {
        this.patternArtifacts = patternArtifacts;
    }

    public void addArtifact(PatternArtifact patternArtifact) {
        if (patternArtifacts == null) {
            patternArtifacts = new ArrayList<>();
        }
        patternArtifacts.add(patternArtifact);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy