Class DoubleArrayBuffer


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

      Fields 
      Modifier and Type Field Description
      double[] 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 double[] buffer
      • length

        public int length
    • Constructor Detail

      • DoubleArrayBuffer

        public DoubleArrayBuffer()
      • DoubleArrayBuffer

        @TestOnly
        public DoubleArrayBuffer​(double[] 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.