Class BinaryData

java.lang.Object
com.massifmaps.core.BinaryData

public class BinaryData extends Object
A wrapper class for binary data (Blob).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs an empty BinaryData object.
    BinaryData(byte[] dataPtr)
    Constructs a BinaryData object from a raw byte array.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this object is equal to the specified object.
    byte[]
    Returns the data array.
    int
    Returns the hash value of this object.
    long
    Returns the size of the data
    Creates a string representation of this map bounds object, useful for logging.

    Methods inherited from class java.lang.Object

    clone, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BinaryData

      public BinaryData()
      Constructs an empty BinaryData object.
    • BinaryData

      public BinaryData(byte[] dataPtr)
      Constructs a BinaryData object from a raw byte array.
      Parameters:
      dataPtr - The raw pointer to the data.
      size - The size of the data in bytes.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value of this object.
    • size

      public long size()
      Returns the size of the data
      Returns:
      The size of the data.
    • getData

      public byte[] getData()
      Returns the data array.
      Returns:
      The data array.
    • toString

      public String toString()
      Creates a string representation of this map bounds object, useful for logging.
      Overrides:
      toString in class Object
      Returns:
      The string representation of this map bounds object.