graphql.language.StringValue Maven / Gradle / Ivy
package graphql.language;
import java.util.ArrayList;
import java.util.List;
public class StringValue extends AbstractNode implements Value {
private String value;
public StringValue(String value) {
this.value = value;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public List getChildren() {
List result = new ArrayList<>();
return result;
}
@Override
public String toString() {
return "StringValue{" +
"value='" + value + '\'' +
'}';
}
@Override
public boolean isEqualTo(Node o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
StringValue that = (StringValue) o;
return !(value != null ? !value.equals(that.value) : that.value != null);
}
@Override
public StringValue deepCopy() {
return new StringValue(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy