Class JsonObjectIterator
- java.lang.Object
-
- org.eclipse.yasson.internal.jsonstructure.JsonObjectIterator
-
- All Implemented Interfaces:
java.util.Iterator<javax.json.stream.JsonParser.Event>
public class JsonObjectIterator extends java.lang.Object
Iterates overJsonObject
managing internal state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonObjectIterator.State
Location pointer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getKey()
Current key this iterator is pointing at.javax.json.JsonValue
getValue()
JsonValue
for current key.boolean
hasNext()
javax.json.stream.JsonParser.Event
next()
-
-
-
Method Detail
-
next
public javax.json.stream.JsonParser.Event next()
-
hasNext
public boolean hasNext()
-
getValue
public javax.json.JsonValue getValue()
JsonValue
for current key.- Returns:
- Current JsonValue.
-
getKey
public java.lang.String getKey()
Current key this iterator is pointing at.- Returns:
- Current key.
-
-