public Iterator < Member > iterator ( ) { final Iterator < String > namesIterator = names . iterator ( ) ; final Iterator < JsonValue > valuesIterator = values . iterator ( ) ; return new Iterator < JsonObject . Member > ( ) { public boolean hasNext ( ) { return namesIterator . hasNext ( ) ; } public Member next ( ) { String name = namesIterator . next ( ) ; JsonValue value = valuesIterator . next ( ) ; return new Member ( name , value ) ; } public void remove ( ) { throw new UnsupportedOperationException ( ) ; } } ; }
Returns an iterator over the members of this object in document order . The returned iterator cannot be used to modify this object .