[JSON_PROCESSING_SPEC-48] Add accessor method to consume same type of objects in JsonArray Created: 25/Jan/13  Updated: 08/Feb/13  Due: 07/Feb/13  Resolved: 08/Feb/13

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

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


 Description   

Jonathan suggests that API add the following method to consume same type of objects in JsonArray

<T extends JsonValue> List<T> JsonArray#getValuesAs(Class<T>) or
<T extends JsonValue> Iterable<T> JsonArray#getValuesAs(Class<T>)

see the discussion

http://java.net/projects/json-processing-spec/lists/users/archive/2013-01/message/0



 Comments   
Comment by jitu [ 08/Feb/13 ]

Added an accessor method that provides a list view of the specified type

Generated at Sat May 30 20:56:26 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.