public class Increment extends OpContext
Modifier and Type | Field and Description |
---|---|
String |
value |
dictionary, foreignElm, key, ns
Constructor and Description |
---|
Increment() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
ITypeValue |
decode(AbstractType abstractType,
Context context,
BinaryMessage message)
Decode binary message to type value.
|
ITypeValue |
decodeValue(Context context,
Type type,
ITypeValue decodeValue)
Decode value.
|
byte[] |
encode(AbstractType abstractType,
Context context,
ITypeValue fieldValue,
EncodePresenceMapBuilder presenceMapBuilder)
Encode type value to bytes.
|
ITypeValue |
encodeValue(Context context,
Type type,
ITypeValue encodeValue) |
ITypeValue |
getDefaultValue(Context context,
Type type)
Get default value for type.
|
OperatorType |
getOperatorType() |
ITypeValue |
getPresenceEncodingValue(Type type,
ITypeValue fieldValue,
Context context,
EncodePresenceMapBuilder presenceMapBuilder) |
boolean |
requiredDecode()
Returns true if decoding enable.
|
boolean |
requiresPMap()
Returns true if P Map is required.
|
boolean |
shouldSetValue(ITypeValue value)
Returns true if value should be stored to context.
|
boolean |
shouldStoreDecodedValue(ITypeValue value)
Returns true if decoded value should stored to context.
|
String |
toString() |
getDictionary, getForeignElm, getId, getKey, getName, getNs, getOtherAttributes, getValue, setDictionary, setKey, setNs, setValue
public String value
public byte[] encode(AbstractType abstractType, Context context, ITypeValue fieldValue, EncodePresenceMapBuilder presenceMapBuilder)
Operator
abstractType
- the type of operationcontext
- the contextfieldValue
- the field valuepresenceMapBuilder
- the presence mappublic ITypeValue decode(AbstractType abstractType, Context context, BinaryMessage message)
Operator
abstractType
- the type of operationcontext
- the contextmessage
- the binary messagepublic boolean requiresPMap()
public OperatorType getOperatorType()
public int compareTo(Object o)
compareTo
in interface Comparable
public ITypeValue encodeValue(Context context, Type type, ITypeValue encodeValue)
context
- the contexttype
- the typepublic ITypeValue decodeValue(Context context, Type type, ITypeValue decodeValue)
context
- the contexttype
- the typepublic ITypeValue getDefaultValue(Context context, Type type)
type
- the typepublic ITypeValue getPresenceEncodingValue(Type type, ITypeValue fieldValue, Context context, EncodePresenceMapBuilder presenceMapBuilder)
public boolean shouldSetValue(ITypeValue value)
Operator
value
- the valuepublic boolean requiredDecode()
public boolean shouldStoreDecodedValue(ITypeValue value)
Operator
shouldStoreDecodedValue
in interface Operator
value
- the valueCopyright © 2000-2017 EPAM Systems. All Rights Reserved.