Package net.sourceforge.plantuml.json
Class JsonObject.Member
java.lang.Object
net.sourceforge.plantuml.json.JsonObject.Member
- Enclosing class:
- JsonObject
public static class JsonObject.Member
extends java.lang.Object
Represents a member of a JSON object, a pair of a name and a value.
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getName
public java.lang.String getName()Returns the name of this member.- Returns:
- the name of this member, never
null
-
getValue
Returns the value of this member.- Returns:
- the value of this member, never
null
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object) Indicates whether a given object is "equal to" this JsonObject. An object is considered equal if it is also aJsonObject
and both objects contain the same members in the same order.If two JsonObjects are equal, they will also produce the same JSON output.
- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- the object to be compared with this JsonObject- Returns:
- true if the specified object is equal to this JsonObject,
false
otherwise
-