Class JsonObjectIterator

  • All Implemented Interfaces:
    java.util.Iterator<javax.json.stream.JsonParser.Event>

    public class JsonObjectIterator
    extends java.lang.Object
    Iterates over JsonObject 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • 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.