Class Index


  • public final class Index
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int i  
    • Constructor Summary

      Constructors 
      Constructor Description
      Index()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dec()
      Decrement the index.
      void dec​(int decrement)
      Decrease the index by decrement steps.
      int get()
      Get the index.
      void inc()
      Increment the index.
      void inc​(int increment)
      Increase the index by decrement steps.
      void set​(int index)
      Set the index to index.
      • Methods inherited from class java.lang.Object

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

      • i

        private int i
    • Constructor Detail

      • Index

        public Index()
    • Method Detail

      • get

        public int get()
        Get the index.

        This is used by accessors (e.g., a Cursor) to position NativeTypes in the container, and by NativeTypes to determine the offset into the underlying primitive array, where the value of the type is stored.

      • set

        public void set​(int index)
        Set the index to index.

        This is used by accessors (e.g., a Cursor) to position NativeTypes in the container.

      • inc

        public void inc()
        Increment the index.

        This is used by accessors (e.g., a Cursor) to position NativeTypes in the container.

      • inc

        public void inc​(int increment)
        Increase the index by decrement steps.

        This is used by accessors (e.g., a Cursor) to position NativeTypes in the container.

      • dec

        public void dec()
        Decrement the index.

        This is used by accessors (e.g., a Cursor) to position NativeTypes in the container.

      • dec

        public void dec​(int decrement)
        Decrease the index by decrement steps.

        This is used by accessors (e.g., a Cursor) to position NativeTypes in the container.