Class ObjectId

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte[] identifier  
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectId​(byte[] identifier)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      byte[] getBytes()
      Returns the raw representation of the object identifier in the form of a byte array.
      int hashCode()  
      static byte[] parseObjectId​(java.lang.String s)  
      static byte[] secureRandomBytes​(int size)  
      java.lang.String toString()
      Converts the byte-array based identifier to a lower case hex string and returns this string.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ObjectId

        public ObjectId​(byte[] identifier)
    • Method Detail

      • getBytes

        public byte[] getBytes()
        Returns the raw representation of the object identifier in the form of a byte array.
      • toString

        public java.lang.String toString()
        Converts the byte-array based identifier to a lower case hex string and returns this string.
        Overrides:
        toString in class java.lang.Object
      • parseObjectId

        public static byte[] parseObjectId​(java.lang.String s)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object