Class PositionsData

  • All Implemented Interfaces:
    com.yahoo.data.access.Inspectable, JsonProducer, XmlProducer

    public class PositionsData
    extends Object
    implements com.yahoo.data.access.Inspectable, JsonProducer, XmlProducer
    A wrapper for structured data representing an array of position values.
    • Constructor Detail

      • PositionsData

        public PositionsData​(com.yahoo.data.access.Inspector value)
    • Method Detail

      • inspect

        public com.yahoo.data.access.Inspector inspect()
        Specified by:
        inspect in interface com.yahoo.data.access.Inspectable
      • writeJson

        public StringBuilder writeJson​(StringBuilder target)
        Description copied from interface: JsonProducer
        Append the JSON representation of this object's data to a StringBuilder. Note that when passing compact=false the generated string will be human-readable and containing embedded newlines; also the exact indentation etc may change, so use compact=true for a canonical format.
        Specified by:
        writeJson in interface JsonProducer
        Parameters:
        target - the StringBuilder to append to.
        Returns:
        the target passed in is also returned (to allow chaining).
      • writeXML

        public StringBuilder writeXML​(StringBuilder target)
        Description copied from interface: XmlProducer
        Append the XML representation of this object's data to a StringBuilder.
        Specified by:
        writeXML in interface XmlProducer
        Parameters:
        target - the StringBuilder to append to.
        Returns:
        the target passed in is also returned (to allow chaining).