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

prompto.debug.value.LeanValue Maven / Gradle / Ivy

The newest version!
package prompto.debug.value;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;

public class LeanValue extends ValueBase {

	public LeanValue() {
	}
	
	public LeanValue(IValue value) {
		this.typeName = value.getTypeName();
		this.valueString = value.getValueString();
	}

	@JsonIgnore
	@Override
	public JsonNode getValueData() {
		return JsonNodeFactory.instance.nullNode();
	}
	
	@Override
	public int hashCode() {
		return this.getClass().hashCode();
	}

	@Override
	public boolean equals(Object other) {
		return this == other || (other instanceof LeanValue && ((LeanValue)other).equals(this));
	}
	
	public boolean equals(LeanValue other) {
		return super.equals(other);
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy