Package com.mongodb.client.model
Class Variable<TExpression>
-
- com.mongodb.client.model.Variable<TExpression>
-
- Type Parameters:
TExpression
- the type of the value for the new variable
public class Variable<TExpression> extends
Helps define new variable for the $lookup pipeline stage- Since:
- 3.7
- MongoDB documentation
- Since server release
-
-
Constructor Summary
Constructors Constructor Description 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 boolean
o)
getName()
TExpression
getValue()
int
hashCode()
toString()
-
-
-
Constructor Detail
-
Variable
public Variable( 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
-
-
Method Detail
-
getName
public getName()
- Returns:
- the name of the new variable
-
getValue
public TExpression getValue()
- Returns:
- the value of the new variable
-
equals
public boolean equals( o)
- Overrides:
in class
-
hashCode
public int hashCode()
- Overrides:
in class
-
toString
public toString()
- Overrides:
in class
-
-