Class OctetString

java.lang.Object
net.aifusion.metamodel.OctetString

public class OctetString extends Object
Class to represent a CIM OctetString An octetString is a wrapper around a byte array
Author:
Sharad Singhal
  • Constructor Details

    • OctetString

      public OctetString(String octets)
      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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object