com.amazon.InApp.transaction
Class Offset

java.lang.Object
  extended by com.amazon.InApp.transaction.Offset

public final class Offset
extends java.lang.Object

Represents a position in a set of paginated results. Operations that take an Offset as input will ultimately provide an Offset as output that you can use to get the next set of results, if more results are available.


Field Summary
static Offset BEGINNING
          Represents the beginning of a data set.
 
Method Summary
static Offset fromString(java.lang.String encodedOffset)
          Create an offset from its encoded String form.
 java.lang.String toString()
          Returns the encoded String form of the Offset.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEGINNING

public static final Offset BEGINNING
Represents the beginning of a data set.

Method Detail

fromString

public static Offset fromString(java.lang.String encodedOffset)
Create an offset from its encoded String form.

Parameters:
encodedOffset - The encoded string form retrieved from toString().
Returns:
An Offset built from the provided String form

toString

public java.lang.String toString()
Returns the encoded String form of the Offset.

Overrides:
toString in class java.lang.Object
Returns:
the encoded String form of the offset