org.zeroexchange.data
Class EmptyDataSet<T>

java.lang.Object
  extended by org.zeroexchange.data.EmptyDataSet<T>
All Implemented Interfaces:
Iterable<T>, DataSet<T>, SlicingDataSet<T>

public final class EmptyDataSet<T>
extends Object
implements SlicingDataSet<T>

Dummy dataset provides empty set of items.

Author:
black

Constructor Summary
EmptyDataSet(Class<T> itemClass)
           
 
Method Summary
 Class<T> getItemClass()
          Returns item class.
 long getTotalCount()
          Returns total count of items could be returned by the current dataset.
 Iterator<T> iterator()
           
 void setCount(long count)
          Sets the max size of fetching fragment.
 void setStart(long start)
          Sets the start index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyDataSet

public EmptyDataSet(Class<T> itemClass)
Method Detail

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

getItemClass

public Class<T> getItemClass()
Description copied from interface: DataSet
Returns item class.

Specified by:
getItemClass in interface DataSet<T>

getTotalCount

public long getTotalCount()
Description copied from interface: DataSet
Returns total count of items could be returned by the current dataset.

Specified by:
getTotalCount in interface DataSet<T>

setStart

public void setStart(long start)
Description copied from interface: SlicingDataSet
Sets the start index.

Specified by:
setStart in interface SlicingDataSet<T>

setCount

public void setCount(long count)
Description copied from interface: SlicingDataSet
Sets the max size of fetching fragment.

Specified by:
setCount in interface SlicingDataSet<T>


Copyright © 2013. All Rights Reserved.