Package com.mongodb.client.model
Class Variable<TExpression>
- java.lang.Object
 - 
- com.mongodb.client.model.Variable<TExpression>
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Variable(String name, TExpression value)Creates a new variable definition for use in $lookup pipeline stages 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()TExpressiongetValue()inthashCode()StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
Variable
public Variable(String name, TExpression value)
Creates a new variable definition for use in $lookup pipeline stages- Parameters:
 name- the name of the new variablevalue- the value of the new variable- MongoDB documentation
 - $lookup
 
 
 - 
 
- 
Method Detail
- 
getName
public String getName()
- Returns:
 - the name of the new variable
 
 
- 
getValue
public TExpression getValue()
- Returns:
 - the value of the new variable
 
 
 - 
 
 -