org.stjs.generator.javascript.NameValue Maven / Gradle / Ivy
package org.stjs.generator.javascript;
public final class NameValue {
private final CharSequence name;
private final JS value;
private NameValue(CharSequence name, JS value) {
this.name = name;
this.value = value;
}
public static NameValue of(CharSequence name, T value) {
return new NameValue(name, value);
}
public JS getValue() {
return value;
}
public CharSequence getName() {
return name;
}
}