Package com.yahoo.search.result
Class PositionsData
java.lang.Object
com.yahoo.search.result.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.data.access.Inspector
inspect()
toString()
writeJson
(StringBuilder target) Append the JSON representation of this object's data to a StringBuilder.writeXML
(StringBuilder target) Append the XML representation of this object's data to a StringBuilder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.yahoo.data.JsonProducer
toJson
Methods inherited from interface com.yahoo.data.XmlProducer
toXML
-
Constructor Details
-
PositionsData
public PositionsData(com.yahoo.data.access.Inspector value)
-
-
Method Details
-
inspect
public com.yahoo.data.access.Inspector inspect()- Specified by:
inspect
in interfacecom.yahoo.data.access.Inspectable
-
toString
-
writeJson
Description copied from interface:JsonProducer
Append the JSON representation of this object's data to a StringBuilder.- Specified by:
writeJson
in interfaceJsonProducer
- Parameters:
target
- the StringBuilder to append to- Returns:
- the target passed in is also returned (to allow chaining)
-
writeXML
Description copied from interface:XmlProducer
Append the XML representation of this object's data to a StringBuilder.- Specified by:
writeXML
in interfaceXmlProducer
- Parameters:
target
- the StringBuilder to append to.- Returns:
- the target passed in is also returned (to allow chaining).
-