Class ValidatingPofHandler.ComplexMap

Enclosing class:
ValidatingPofHandler

public class ValidatingPofHandler.ComplexMap extends ValidatingPofHandler.Complex
A ComplexMap object represents a map data structure (potentially with uniform keys or with uniform keys and values) in the POF stream.
  • Constructor Details

    • ComplexMap

      public ComplexMap(ValidatingPofHandler.Complex complexCurrent, int cElements)
      Construct a Complex object for a uniform-keys map.
      Parameters:
      complexCurrent - the current Complex object or null
      cElements - the number of map entries
    • ComplexMap

      public ComplexMap(ValidatingPofHandler.Complex complexCurrent, int cElements, int nUniformKeyTypeId)
      Construct a Complex object for a uniform-keys map.
      Parameters:
      complexCurrent - the current Complex object or null
      cElements - the number of map entries
      nUniformKeyTypeId - the type identifier of the uniform type for keys in the map
    • ComplexMap

      public ComplexMap(ValidatingPofHandler.Complex complexCurrent, int cElements, int nUniformKeyTypeId, int nUniformValTypeId)
      Construct a Complex object for a uniform map.
      Parameters:
      complexCurrent - the current Complex object or null
      cElements - the number of map entries
      nUniformKeyTypeId - the type identifier of the uniform type for keys in the map
      nUniformValTypeId - the type identifier of the uniform type for values in the map
  • Method Details

    • checkPosition

      public void checkPosition(int iPos)
      Notify the Complex object that a value has been encountered.
      Overrides:
      checkPosition in class ValidatingPofHandler.Complex
      Parameters:
      iPos - the position that accomponied the value
    • getNextPosition

      public int getNextPosition()
      For complex values with contiguous values, obtain the next position.
      Overrides:
      getNextPosition in class ValidatingPofHandler.Complex
      Returns:
      the next position
    • isUniform

      public boolean isUniform()
      Determine if the object encoding within the Complex type is uniform.
      Overrides:
      isUniform in class ValidatingPofHandler.Complex
      Returns:
      true iff values within the Complex type are of a uniform type and are encoded uniformly
    • getUniformType

      public int getUniformType()
      If the object encoding is using uniform encoding, obtain the type id of the uniform type.
      Overrides:
      getUniformType in class ValidatingPofHandler.Complex
      Returns:
      the type id used for the uniform encoding