Class CodeWScope

    • Constructor Detail

      • CodeWScope

        public CodeWScope​(String code,
                          BSONObject scope)
        Creates a new instance
        Parameters:
        code - the JavaScript code
        scope - the scope as a document
    • Method Detail

      • getScope

        public BSONObject getScope()
        Gets the scope for this JavaScript
        Returns:
        a document representing the scope
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Code
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Code