Package org.mongojack.internal.update
Class SingleUpdateOperationValue
- java.lang.Object
-
- org.mongojack.internal.update.SingleUpdateOperationValue
-
- All Implemented Interfaces:
UpdateOperationValue
public class SingleUpdateOperationValue extends Object implements UpdateOperationValue
A single update operation value
-
-
Constructor Summary
Constructors Constructor Description SingleUpdateOperationValue(boolean targetCollection, boolean requiresSerialization, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetValue()Get the valuebooleanisTargetCollection()Whether the target field for these values is a collection.booleanrequiresSerialization()Whether the value requires serialization
-
-
-
Constructor Detail
-
SingleUpdateOperationValue
public SingleUpdateOperationValue(boolean targetCollection, boolean requiresSerialization, Object value)
-
-
Method Detail
-
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
-
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
-
getValue
public Object getValue()
Description copied from interface:UpdateOperationValueGet the value- Specified by:
getValuein interfaceUpdateOperationValue- Returns:
- The value
-
-