public final class JsonField
extends java.lang.Object
| Constructor and Description | 
|---|
| JsonField(JsonStringNode name,
         JsonNode value)Constructs an instance of  JsonFieldwith the given name and value. | 
| JsonField(java.lang.String name,
         JsonNode value)Constructs an instance of  JsonFieldwith the given name and value. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object that) | 
| JsonStringNode | getName() | 
| java.lang.String | getNameText() | 
| JsonNode | getValue() | 
| int | hashCode() | 
| java.lang.String | toString() | 
public JsonField(java.lang.String name,
                 JsonNode value)
JsonField with the given name and value.name - a String representing the field name.value - any JsonNode representing the value of the field.public JsonField(JsonStringNode name, JsonNode value)
JsonField with the given name and value.name - a JSON string representing the field name.value - any JsonNode representing the value of the field.public JsonStringNode getName()
public java.lang.String getNameText()
public JsonNode getValue()
JsonNode representing the value of the field.public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object