TExpression
- the type of the value for the new fieldpublic class Field<TExpression> extends Object
Constructor | Description |
---|---|
Field(String name,
TExpression value) |
Creates a new field definition for use in $addFields pipeline stages
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
String |
getName() |
|
TExpression |
getValue() |
|
int |
hashCode() |
|
String |
toString() |
public Field(String name, TExpression value)
name
- the name of the new fieldvalue
- the value of the new fieldpublic String getName()
public TExpression getValue()