Package db.buffers

# Class ChangeMap

java.lang.Object
db.buffers.ChangeMap

public class ChangeMap extends Object
`ChangeMap` facilitates the decoding of change-data to determine if a specific buffer was modified by the corresponding buffer file version.

See Also:
  - `ChangeMapFile`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChangeMap(byte[] mapData)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `containsIndex(int index)`
  Returns true if the specified index is within the bounds of this map.
  `byte[]`
  `getData()`
  Get the underlying change map data as a byte array
  `boolean`
  `hasChanged(int index)`
  Returns true if the change map data indicates that the specified buffer has been modified.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ChangeMap

    public ChangeMap(byte[] mapData)
    Constructor.
    Parameters:
      `mapData` - change map data

- ## Method Details

  - ### getData

    public byte[] getData()
    Get the underlying change map data as a byte array
    Returns:
      change map data

  - ### hasChanged

    public boolean hasChanged(int index)
    Returns true if the change map data indicates that the specified buffer has been modified.
    Parameters:
      `index` - buffer index

  - ### containsIndex

    public boolean containsIndex(int index)
    Returns true if the specified index is within the bounds of this map.