dev.jbang.source.KeyValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbang-cli Show documentation
Show all versions of jbang-cli Show documentation
JBang Command Line Interface
The newest version!
package dev.jbang.source;
public class KeyValue {
final String key;
final String value;
public KeyValue(String key, String value) {
this.key = key;
this.value = value;
}
public String getKey() {
return key;
}
public String getValue() {
return value;
}
public String toManifestString() {
return getKey() + ": " + value;
}
@Override
public String toString() {
return getKey() + "=" + getValue() == null ? "" : getValue();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy