Class DocumentId


  • public final class DocumentId
    extends java.lang.Object
    ID of a document. Unique within the segment. Must match the regex `^[a-zA-Z0-9_.$#|@/:;=+'-]+$`.
    • Method Detail

      • validate

        public static DocumentId validate​(java.lang.String s)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getId

        public final java.lang.String getId()
      • delete

        public void delete()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • hashCode

        public int hashCode()
        This implementation calls native code, which means it's relatively slow.
        Overrides:
        hashCode in class java.lang.Object
      • equals

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