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