|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.core.UjoIterator<T>
public abstract class UjoIterator<T>
Ujo iterator have got some extended functions:
| Constructor Summary | |
|---|---|
UjoIterator()
|
|
| Method Summary | ||
|---|---|---|
void |
close()
Close all resources, if any. |
|
long |
count()
Returns a count of items or value -1 if the count is not known. |
|
static
|
getInstance(java.util.Collection<T> collection)
|
|
static
|
getInstance(java.util.Iterator<T> iterator)
|
|
static
|
getInstance(Query<T> query)
|
|
abstract boolean |
hasNext()
Tests if this enumeration contains more elements. |
|
java.util.Iterator<T> |
iterator()
Returns the same instance |
|
abstract T |
next()
Returns the next element if exists. |
|
void |
remove()
Deprecated. The method is not implemented. |
|
boolean |
skip(int count)
Skip some items by the parameter. |
|
java.util.List<T> |
toList()
Copy items to a new List |
|
java.lang.String |
toString()
Returns a count of items. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UjoIterator()
| Method Detail |
|---|
public abstract boolean hasNext()
hasNext in interface java.util.Iterator<T>
public abstract T next()
throws java.util.NoSuchElementException
next in interface java.util.Iterator<T>java.util.NoSuchElementException - no more elements exist.public long count()
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>public void remove()
remove in interface java.util.Iterator<T>public boolean skip(int count)
count - A count of item to skip.
public java.util.List<T> toList()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic void close()
public java.lang.String toString()
toString in class java.lang.Objectpublic static final <T> UjoIterator<T> getInstance(java.util.Iterator<T> iterator)
public static final <T> UjoIterator<T> getInstance(java.util.Collection<T> collection)
public static final <T extends OrmUjo> UjoIterator<T> getInstance(Query<T> query)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||