Class Document

    • Constructor Summary

      Constructors 
      Constructor Description
      Document​(java.lang.String id, Module coll, java.time.Instant ts)
      Initializes a new instance of the Document class with the specified id, coll, and ts.
      Document​(java.lang.String id, Module coll, java.time.Instant ts, java.util.Map<java.lang.String,​java.lang.Object> data)
      Initializes a new instance of the Document class with the specified id, coll, ts, and additional data stored as key/value pairs on the instance.
    • Constructor Detail

      • Document

        public Document​(java.lang.String id,
                        Module coll,
                        java.time.Instant ts)
        Initializes a new instance of the Document class with the specified id, coll, and ts.
        Parameters:
        id - The string value of the document id.
        coll - The module to which the document belongs.
        ts - The timestamp of the document.
      • Document

        public Document​(java.lang.String id,
                        Module coll,
                        java.time.Instant ts,
                        java.util.Map<java.lang.String,​java.lang.Object> data)
        Initializes a new instance of the Document class with the specified id, coll, ts, and additional data stored as key/value pairs on the instance.
        Parameters:
        id - The string value of the document id.
        coll - The module to which the document belongs.
        ts - The timestamp of the document.
        data - Additional data on the document.
    • Method Detail

      • getId

        public java.lang.String getId()
        Gets the string value of the document id.
        Returns:
        The string value of the document id.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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