Class JsonInputParser.OneElementEntryIterator

  • All Implemented Interfaces:
    com.jsoniter.any.Any.EntryIterator
    Enclosing class:
    JsonInputParser

    private static final class JsonInputParser.OneElementEntryIterator
    extends java.lang.Object
    implements com.jsoniter.any.Any.EntryIterator
    Emulates a one-element entry "iterator".
    Author:
    Holger Eichelberger, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String key  
      private com.jsoniter.any.Any value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OneElementEntryIterator​(java.lang.String key, com.jsoniter.any.Any value)
      Creates the instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String key()  
      boolean next()  
      com.jsoniter.any.Any value()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • key

        private java.lang.String key
      • value

        private com.jsoniter.any.Any value
    • Constructor Detail

      • OneElementEntryIterator

        private OneElementEntryIterator​(java.lang.String key,
                                        com.jsoniter.any.Any value)
        Creates the instance.
        Parameters:
        key - the key of the only element
        value - the value of the only element
    • Method Detail

      • next

        public boolean next()
        Specified by:
        next in interface com.jsoniter.any.Any.EntryIterator
      • key

        public java.lang.String key()
        Specified by:
        key in interface com.jsoniter.any.Any.EntryIterator
      • value

        public com.jsoniter.any.Any value()
        Specified by:
        value in interface com.jsoniter.any.Any.EntryIterator