Package com.mongodb.client.model
Class Variable<TExpression>
- java.lang.Object
-
- com.mongodb.client.model.Variable<TExpression>
-
-
Constructor Summary
Constructors Constructor Description Variable(java.lang.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 boolean
equals(java.lang.Object o)
java.lang.String
getName()
TExpression
getValue()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Variable
public Variable(java.lang.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 java.lang.String getName()
- Returns:
- the name of the new variable
-
getValue
public TExpression getValue()
- Returns:
- the value of the new variable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-