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 booleanequals(Object o)StringgetCode()Get the Javascript code.inthashCode()StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
Code
public Code(String code)
Construct a new instance with the given code.- Parameters:
 code- the Javascript code
 
 - 
 
 -