public class CodeWScope
extends org.bson.types.Code
BsonType.JAVASCRIPT_WITH_SCOPE,
Serialized Form| Constructor and Description |
|---|
CodeWScope(String code,
BSONObject scope)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
BSONObject |
getScope()
Gets the scope for this JavaScript
|
int |
hashCode() |
public CodeWScope(String code, BSONObject scope)
code - the JavaScript codescope - the scope as a documentpublic BSONObject getScope()
public boolean equals(Object o)
equals in class org.bson.types.Codepublic int hashCode()
hashCode in class org.bson.types.CodeCopyright © 2017. All rights reserved.