Package com.massifmaps.core
Class BinaryData
java.lang.Object
com.massifmaps.core.BinaryData
A wrapper class for binary data (Blob).
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty BinaryData object.BinaryData(byte[] dataPtr) Constructs a BinaryData object from a raw byte array. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.byte[]getData()Returns the data array.inthashCode()Returns the hash value of this object.longsize()Returns the size of the datatoString()Creates a string representation of this map bounds object, useful for logging.
-
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
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()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
Creates a string representation of this map bounds object, useful for logging.
-