net.spy.digg
Class PagingParameters

java.lang.Object
  extended by net.spy.digg.PagingParameters
Direct Known Subclasses:
EventParameters, GalleryPhotoParameters, StoryParameters, UserParameters

public abstract class PagingParameters
extends java.lang.Object

Base class for paging parameters.


Field Summary
static int MAX_COUNT
          The maximum value for a count.
static int MIN_COUNT
          The minimum value for a count.
 
Constructor Summary
PagingParameters()
           
 
Method Summary
 java.lang.Integer getCount()
           
 java.lang.Integer getOffset()
          Get the result offset.
 java.lang.String getSort()
          Get the sort type.
 void setCount(int to)
          Set the number of results to return.
 void setOffset(int to)
          Set the result offset.
 void setSort(java.lang.String to)
          Set the sort type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_COUNT

public static final int MIN_COUNT
The minimum value for a count.

See Also:
Constant Field Values

MAX_COUNT

public static final int MAX_COUNT
The maximum value for a count.

See Also:
Constant Field Values
Constructor Detail

PagingParameters

public PagingParameters()
Method Detail

getCount

public java.lang.Integer getCount()

setCount

public void setCount(int to)
Set the number of results to return.

Parameters:
to - an integer between MIN_COUNT and MAX_COUNT (inclusive).

getOffset

public java.lang.Integer getOffset()
Get the result offset.


setOffset

public void setOffset(int to)
Set the result offset.

Parameters:
to - a positive integer

getSort

public java.lang.String getSort()
Get the sort type.


setSort

public void setSort(java.lang.String to)
Set the sort type.