Package org.bson.types
Class Code
- java.lang.Object
-
- org.bson.types.Code
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CodeWithScope
,CodeWScope
public class Code extends Object implements Serializable
For using the Code type.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCode()
Get the Javascript code.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Code
public Code(String code)
Construct a new instance with the given code.- Parameters:
code
- the Javascript code
-
-