Class DenseValueLayerStore

  • All Implemented Interfaces:
    ValueLayerStore

    public class DenseValueLayerStore
    extends Object
    implements ValueLayerStore
    Value layer store implementation backed by a dense array.
    Author:
    Eric Tatatara
    • Field Detail

      • array

        protected double[] array
    • Constructor Detail

      • DenseValueLayerStore

        public DenseValueLayerStore​(int size)
      • DenseValueLayerStore

        public DenseValueLayerStore​(int size,
                                    double defaultValue)
    • Method Detail

      • get

        public double get​(long index)
        Description copied from interface: ValueLayerStore
        Get the double value for the specified index.
        Specified by:
        get in interface ValueLayerStore
        Returns:
      • set

        public void set​(long index,
                        double value)
        Description copied from interface: ValueLayerStore
        Set the double value for the specified index.
        Specified by:
        set in interface ValueLayerStore