org.directwebremoting.io
Class MatchedItems

java.lang.Object
  extended by org.directwebremoting.io.MatchedItems

public class MatchedItems
extends java.lang.Object

MatchedItems is simply a holder for a list of matched Items and a total match count, used by: StoreProvider.viewRegion(StoreRegion) and StoreProvider.viewRegion(StoreRegion, StoreChangeListener)

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
MatchedItems()
          The constructor to use of there are no items to transfer.
MatchedItems(java.util.List<Item> viewedMatches, int totalMatchCount)
          If there is data to return, then both of these must be set.
 
Method Summary
 int getTotalMatchCount()
          Accessor for the total number of matches (before start/count filtering)
 java.util.List<Item> getViewedMatches()
          Accessor for the matched items (after start/count filtering)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchedItems

public MatchedItems(java.util.List<Item> viewedMatches,
                    int totalMatchCount)
If there is data to return, then both of these must be set. Note that totalMatchCount == viewedMatches.size() ONLY when there is no filtering going on.


MatchedItems

public MatchedItems()
The constructor to use of there are no items to transfer.

Method Detail

getTotalMatchCount

public int getTotalMatchCount()
Accessor for the total number of matches (before start/count filtering)


getViewedMatches

public java.util.List<Item> getViewedMatches()
Accessor for the matched items (after start/count filtering)


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright 2008