|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.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(Collection<T> collection)
Deprecated. Use the method {@link #of(java.util.Collection) rather |
|
static
|
getInstance(Iterator<T> iterator)
Deprecated. Use the method of(java.util.Iterator) rather |
|
static
|
getInstance(Query<T> query)
Deprecated. Use the method {@link #of(org.ujorm.orm.Query) rather |
|
abstract boolean |
hasNext()
Tests if this enumeration contains more elements. |
|
Iterator<T> |
iterator()
Returns the same instance |
|
abstract T |
next()
Returns the next element if exists. |
|
static
|
of(Collection<T> collection)
Create an instance |
|
static
|
of(Iterator<T> iterator)
Create an instance |
|
static
|
of(Query<T> query)
Create an instance |
|
void |
remove()
Deprecated. The method is not implemented. |
|
boolean |
skip(int count)
Skip some items by the parameter. |
|
List<T> |
toList()
Copy items to a new List |
|
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 Iterator<T>
public abstract T next()
throws NoSuchElementException
next in interface Iterator<T>NoSuchElementException - no more elements exist.public long count()
public Iterator<T> iterator()
iterator in interface Iterable<T>public void remove()
remove in interface Iterator<T>public boolean skip(int count)
count - A count of item to skip.
public List<T> toList()
throws IllegalStateException
IllegalStateExceptionpublic void close()
close in interface Closeablepublic String toString()
toString in class Objectpublic static final <T> UjoIterator<T> of(Iterator<T> iterator)
public static final <T> UjoIterator<T> of(Collection<T> collection)
public static final <T extends OrmUjo> UjoIterator<T> of(Query<T> query)
@Deprecated public static final <T> UjoIterator<T> getInstance(Iterator<T> iterator)
of(java.util.Iterator) rather
@Deprecated public static final <T> UjoIterator<T> getInstance(Collection<T> collection)
@Deprecated 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 | |||||||||