Package net.aifusion.metamodel
Class OctetString
java.lang.Object
net.aifusion.metamodel.OctetString
Class to represent a CIM OctetString
An octetString is a wrapper around a byte array
- Author:
- Sharad Singhal
-
Constructor Summary
ConstructorDescriptionOctetString
(byte[] octets) Create an OctetString from a byte arrayOctetString
(String octets) Create an OctetString -
Method Summary
-
Constructor Details
-
OctetString
Create an OctetString- Parameters:
octets
- - String representation of a byte array in hex representation
-
OctetString
public OctetString(byte[] octets) Create an OctetString from a byte array- Parameters:
octets
- - array containing the bytes
-
-
Method Details
-
getValue
public byte[] getValue()Get the value of this octetString as a byte []- Returns:
- - byte [] containing the value of this octetString. Null is returned if the underlying octetString has no value
-
hashCode
public int hashCode() -
equals
-
toString
-