Class ArrayLazyAny

  • All Implemented Interfaces:
    java.lang.Iterable<Any>

    class ArrayLazyAny
    extends LazyAny
    • Field Detail

      • typeLiteral

        private static final TypeLiteral<java.util.List<Any>> typeLiteral
      • cache

        private java.util.List<Any> cache
      • lastParsedPos

        private int lastParsedPos
    • Constructor Detail

      • ArrayLazyAny

        public ArrayLazyAny​(byte[] data,
                            int head,
                            int tail)
    • Method Detail

      • object

        public java.lang.Object object()
        Specified by:
        object in class Any
      • toBoolean

        public boolean toBoolean()
        Specified by:
        toBoolean in class Any
      • toInt

        public int toInt()
        Specified by:
        toInt in class Any
      • toLong

        public long toLong()
        Specified by:
        toLong in class Any
      • toFloat

        public float toFloat()
        Specified by:
        toFloat in class Any
      • toDouble

        public double toDouble()
        Specified by:
        toDouble in class Any
      • toBigInteger

        public java.math.BigInteger toBigInteger()
        Specified by:
        toBigInteger in class Any
      • toBigDecimal

        public java.math.BigDecimal toBigDecimal()
        Specified by:
        toBigDecimal in class Any
      • size

        public int size()
        Overrides:
        size in class Any
      • iterator

        public java.util.Iterator<Any> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Any>
        Overrides:
        iterator in class Any
      • get

        public Any get​(int index)
        Overrides:
        get in class Any
      • get

        public Any get​(java.lang.Object[] keys,
                       int idx)
        Overrides:
        get in class Any
      • fillCache

        private void fillCache()
      • fillCacheUntil

        private Any fillCacheUntil​(int target)
      • writeTo

        public void writeTo​(JsonStream stream)
                     throws java.io.IOException
        Overrides:
        writeTo in class LazyAny
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class LazyAny