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

org.yamcs.xtce.ArgumentAssignment Maven / Gradle / Ivy

There is a newer version: 5.10.7
Show newest version
package org.yamcs.xtce;

import java.io.Serializable;

public class ArgumentAssignment implements Serializable {
    private static final long serialVersionUID = 1L;

    final String argumentName;
    final String argumentValue;

    public ArgumentAssignment(String argumentName, String argumentValue) {
        if (argumentName == null) {
            throw new NullPointerException("argumentName cannot be null");
        }
        if (argumentValue == null) {
            throw new NullPointerException("argumentValue cannot be null");
        }
        this.argumentName = argumentName;
        this.argumentValue = argumentValue;
    }

    public String getArgumentName() {
        return argumentName;
    }

    public String getArgumentValue() {
        return argumentValue;
    }

    @Override
    public String toString() {
        return argumentName + "=" + argumentValue;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy