|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.cursor.EmptyCursor<S>
public class EmptyCursor<S>
Special cursor implementation that is empty.
SingletonCursor| Method Summary | ||
|---|---|---|
void |
close()
Does nothing. |
|
int |
copyInto(Collection<? super S> c)
Performs no copy and always returns 0. |
|
int |
copyInto(Collection<? super S> c,
int limit)
Performs no copy and always returns 0. |
|
boolean |
hasNext()
Always returns false. |
|
S |
next()
Always throws NoSuchElementException. |
|
int |
skipNext(int amount)
Always returns 0. |
|
static
|
the()
Returns the empty cursor instance. |
|
List<S> |
toList()
Always returns an empty list. |
|
List<S> |
toList(int limit)
Always returns an empty list. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <S> Cursor<S> the()
public void close()
close in interface Cursor<S>public boolean hasNext()
hasNext in interface Cursor<S>public S next()
next in interface Cursor<S>public int skipNext(int amount)
skipNext in interface Cursor<S>amount - maximum amount of elements to skip
public int copyInto(Collection<? super S> c)
copyInto in interface Cursor<S>
public int copyInto(Collection<? super S> c,
int limit)
copyInto in interface Cursor<S>limit - maximum amount of elements to copy
public List<S> toList()
toList in interface Cursor<S>public List<S> toList(int limit)
toList in interface Cursor<S>limit - maximum amount of elements to copy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||