org.shredzone.flattr4j.model
Class SearchResult

java.lang.Object
  extended by org.shredzone.flattr4j.model.Resource
      extended by org.shredzone.flattr4j.model.SearchResult
All Implemented Interfaces:
Serializable

public class SearchResult
extends Resource

Contains the search result.

This class is not threadsafe.

Since:
2.0
Author:
Richard "Shred" Körber
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.shredzone.flattr4j.model.Resource
data
 
Constructor Summary
SearchResult(FlattrObject data)
          Creates a new SearchResult.
 
Method Summary
 int getItemCount()
          Returns the number of items.
 int getPage()
          Returns the current page.
 List<Thing> getThings()
          Returns the result list of Thing.
 int getTotalCount()
          Returns the total number of results.
 
Methods inherited from class org.shredzone.flattr4j.model.Resource
toFlattrObject, toJSON
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResult

public SearchResult(FlattrObject data)
Creates a new SearchResult.

Method Detail

getTotalCount

public int getTotalCount()
Returns the total number of results.


getItemCount

public int getItemCount()
Returns the number of items.


getPage

public int getPage()
Returns the current page.


getThings

public List<Thing> getThings()
Returns the result list of Thing.



Copyright © 2010-2012. All Rights Reserved.