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 Object
Represents a member of a JSON object, a pair of a name and a value.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Indicates whether a given object is "equal to" this JsonObject.StringgetName()Returns the name of this member.JsonValuegetValue()Returns the value of this member.inthashCode()
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of this member.- Returns:
- the name of this member, never
null
-
getValue
public JsonValue getValue()
Returns the value of this member.- Returns:
- the value of this member, never
null
-
equals
public boolean equals(Object object)
Indicates whether a given object is "equal to" this JsonObject. An object is considered equal if it is also aJsonObjectand both objects contain the same members in the same order.If two JsonObjects are equal, they will also produce the same JSON output.
-
-