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

com.atlassian.bamboo.specs.api.model.trigger.AllOtherTriggerConditionProperties Maven / Gradle / Ivy

There is a newer version: 10.2.0
Show newest version
package com.atlassian.bamboo.specs.api.model.trigger;

import com.atlassian.bamboo.specs.api.model.AtlassianModuleProperties;

import javax.annotation.concurrent.Immutable;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Objects;

@Immutable
public class AllOtherTriggerConditionProperties extends TriggerConditionProperties {
    public static final String ALL_OTHER_TRIGGER_CONDITION_PLUGINS_MODULE_KEY = "com.atlassian.bamboo:#allothertriggerconditionplugins";

    private final Map configuration;

    private AllOtherTriggerConditionProperties() {
        configuration = new HashMap<>();
    }

    public AllOtherTriggerConditionProperties(Map configuration) {
        this.configuration = Collections.unmodifiableMap(new LinkedHashMap<>(configuration));
    }

    @Override
    public AtlassianModuleProperties getAtlassianPlugin() {
        return new AtlassianModuleProperties(ALL_OTHER_TRIGGER_CONDITION_PLUGINS_MODULE_KEY);
    }

    public Map getConfiguration() {
        return configuration;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        AllOtherTriggerConditionProperties that = (AllOtherTriggerConditionProperties) o;
        return Objects.equals(configuration, that.configuration);
    }

    @Override
    public int hashCode() {
        return Objects.hash(configuration);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy