Skip navigation links
com.tangosol.io.pof.reflect
Class PofSparseArray.NilPofValue
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.io.pof.reflect.AbstractPofValue
com.tangosol.io.pof.reflect.SimplePofValue
com.tangosol.io.pof.reflect.PofSparseArray.NilPofValue
- All Implemented Interfaces:
- PofValue
- Enclosing class:
- PofSparseArray
-
protected static class PofSparseArray.NilPofValue
- extends SimplePofValue
NilPofValue represents a value that does not exist in the original POF stream.
Methods inherited from class com.tangosol.io.pof.reflect.AbstractPofValue |
applyChanges, getChanges, getDirtyBytesCount, getOffset, getOriginalBuffer, getParent, getPofContext, getPropertyIndex, getRoot, getSize, getTypeId, getValue, getValue, getValueBuffer, incrementDirtyBytesCount, incrementDirtyValuesCount, isDirty, isRoot, isUniformEncoded, setDecorations, setDirty, setOriginalBuffer, setUniformEncoded |
Methods inherited from class com.tangosol.util.BitHelper |
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString |
PofSparseArray.NilPofValue
public PofSparseArray.NilPofValue(PofValue valueParent,
PofContext ctx,
int of,
int nType,
int nIndex)
- Construct a NilPofValue instance.
- Parameters:
valueParent
- parent value within the POF stream
ctx
- POF context to use when reading or writing properties
of
- offset of this value from the beginning of POF stream
nType
- POF type identifier for this value
nIndex
- index of this value within the parent sparse array
getValue
public Object getValue(int nType)
- Return the deserialized value which this PofValue represents.
-
- Specified by:
getValue
in interface PofValue
- Overrides:
getValue
in class AbstractPofValue
-
- Parameters:
nType
- the required Pof type of the returned value or PofConstants.T_UNKNOWN
if the type is to be inferred from the serialized state
- Returns:
- the deserialized value
setValue
public void setValue(Object oValue)
- Update this PofValue. <p/> The changes made using this method will be immediately reflected in the result of
PofValue.getValue()
method, but will not be applied to the underlying POF stream until the PofValue.applyChanges()
method is invoked on the root PofValue.
-
- Specified by:
setValue
in interface PofValue
- Overrides:
setValue
in class AbstractPofValue
-
- Parameters:
oValue
- new deserialized value for this PofValue
getSerializedValue
public ReadBuffer getSerializedValue()
- Return this value's serialized form.
-
- Overrides:
getSerializedValue
in class AbstractPofValue
-
- Returns:
- this value's serialized form
Skip navigation links
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.