[JSON_PROCESSING_SPEC-14] equals()/hashcCode() for object model Created: 19/Oct/12  Updated: 29/Nov/12  Resolved: 29/Nov/12

Status: Closed
Project: json-processing-spec
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0-pr

Type: Improvement Priority: Major
Reporter: jitu Assignee: jitu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Define equals()/hashCode() semantics



 Comments   
Comment by jitu [ 29/Nov/12 ]

equals()/hashCode() is defined as follows:

JsonNumber

  • BigDecimal getBigDecimal(). BigDecimal is used for equals()/hashCode()

JsonObject

  • Map<String, JsonValue> getValues(). Map is used for equals()/hashCode()

JsonArray

  • List<JsonValue> getValues(). List is used for equals()/hashCode()

JsonString

  • String getString(). String is used for equals()/hashCode()

JsonTrue/JsonFalse/JsonNull

  • JsonValueType getValueType(). The corresponding enum is used for equals()/hashCode()
Generated at Sat Apr 18 11:54:29 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.