Class PrimitiveArrays.Cursor

  • Enclosing class:
    PrimitiveArrays

    public static class PrimitiveArrays.Cursor
    extends java.lang.Object
    A cursor storing a position and a limit.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long limit  
      long position  
    • Constructor Summary

      Constructors 
      Constructor Description
      Cursor​(long position, long limit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long remaining()
      Returns the number of remaining elements (limit - position).
      • Methods inherited from class java.lang.Object

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

      • position

        public long position
      • limit

        public long limit
    • Constructor Detail

      • Cursor

        Cursor​(long position,
               long limit)
    • Method Detail

      • remaining

        public long remaining()
        Returns the number of remaining elements (limit - position).