Class PofArray

All Implemented Interfaces:
PofValue
Direct Known Subclasses:
PofCollection, PofUniformArray

public class PofArray extends ComplexPofValue
PofArray is a PofValue implementation for arrays.
Since:
Coherence 3.5
Author:
as 2009.03.06
  • Constructor Details

    • PofArray

      public PofArray(PofValue valueParent, ReadBuffer bufValue, PofContext ctx, int of, int nType, int ofChildren, int cElements)
      Construct a PofArray instance wrapping the supplied buffer.
      Parameters:
      valueParent - parent value within the POF stream
      bufValue - buffer containing POF representation of this value
      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
      ofChildren - offset of the first child element within this value
      cElements - the length of this array
  • Method Details

    • getLength

      public int getLength()
      Return the length of this array.
      Returns:
      the length of this array
    • findChildInternal

      protected PofValue findChildInternal(int nIndex, int ofStart, int iStart)
      Find the child value with the specified index.
      Specified by:
      findChildInternal in class ComplexPofValue
      Parameters:
      nIndex - index of the child value to find
      ofStart - offset within the parent buffer to start search from
      iStart - index of the child value to start search from
      Returns:
      the child value