public class EmptyCursor<S> extends java.lang.Object implements Cursor<S>
SingletonCursor
Modifier and Type | Method and Description |
---|---|
void |
close()
Does nothing.
|
int |
copyInto(java.util.Collection<? super S> c)
Performs no copy and always returns 0.
|
int |
copyInto(java.util.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 <S> Cursor<S> |
the()
Returns the empty cursor instance.
|
java.util.List<S> |
toList()
Always returns an empty list.
|
java.util.List<S> |
toList(int limit)
Always returns an empty list.
|
public static <S> Cursor<S> the()
public S next()
public int skipNext(int amount)
public int copyInto(java.util.Collection<? super S> c)
public int copyInto(java.util.Collection<? super S> c, int limit)
public java.util.List<S> toList()
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.