Class LongArrayBuffer


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

      Fields 
      Modifier and Type Field Description
      long[] buffer  
      int length  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ensureCapacity​(int length)
      Make sure to be able to hold at least length elements.
      • Methods inherited from class java.lang.Object

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

      • buffer

        public long[] buffer
      • length

        public int length
    • Constructor Detail

      • LongArrayBuffer

        public LongArrayBuffer()
      • LongArrayBuffer

        public LongArrayBuffer​(long[] buffer,
                               int length)
    • Method Detail

      • ensureCapacity

        public void ensureCapacity​(int length)
        Make sure to be able to hold at least length elements. Throws existing data away.