public static class ArithmeticOperators.Subtract extends Object
AggregationExpression for $subtract.protected String getMongoMethod()
public static ArithmeticOperators.Subtract valueOf(String fieldReference)
ArithmeticOperators.Subtract.fieldReference - must not be null.public static ArithmeticOperators.Subtract valueOf(AggregationExpression expression)
ArithmeticOperators.Subtract.expression - must not be null.public static ArithmeticOperators.Subtract valueOf(Number value)
ArithmeticOperators.Subtract.value - must not be null.public ArithmeticOperators.Subtract subtract(String fieldReference)
public ArithmeticOperators.Subtract subtract(AggregationExpression expression)
public ArithmeticOperators.Subtract subtract(Number value)
public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressionpublic org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected <T> T get(int index)
T - index - protected <T> T get(Object key)
T - key - protected boolean contains(Object key)
key - Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.