Package org.mongojack.internal.update
Class MultiUpdateOperationValue
- java.lang.Object
-
- org.mongojack.internal.update.MultiUpdateOperationValue
-
- All Implemented Interfaces:
UpdateOperationValue
public class MultiUpdateOperationValue extends Object implements UpdateOperationValue
A multi update operation value
-
-
Constructor Summary
Constructors Constructor Description MultiUpdateOperationValue(boolean targetCollection, boolean requiresSerialization, Object... values)MultiUpdateOperationValue(boolean targetCollection, boolean requiresSerialization, List<?> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValues(List<?> values)ObjectgetValue()Get the valueCollection<?>getValues()booleanisTargetCollection()Whether the target field for these values is a collection.booleanrequiresSerialization()Whether the value requires serialization
-
-
-
Method Detail
-
isTargetCollection
public boolean isTargetCollection()
Description copied from interface:UpdateOperationValueWhether the target field for these values is a collection.- Specified by:
isTargetCollectionin interfaceUpdateOperationValue- Returns:
- True if the target is a collection, false if otherwise
-
requiresSerialization
public boolean requiresSerialization()
Description copied from interface:UpdateOperationValueWhether the value requires serialization- Specified by:
requiresSerializationin interfaceUpdateOperationValue- Returns:
- True if the value requires serialization, false if otherwise
-
getValue
public Object getValue()
Description copied from interface:UpdateOperationValueGet the value- Specified by:
getValuein interfaceUpdateOperationValue- Returns:
- The value
-
getValues
public Collection<?> getValues()
-
addValues
public void addValues(List<?> values)
-
-