Package org.drools.core.util
Class LinkedList.JavaUtilIterator<T extends LinkedListNode<T>>
- java.lang.Object
-
- org.drools.core.util.LinkedList.JavaUtilIterator<T>
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Iterator<T>
- Enclosing class:
- LinkedList<T extends LinkedListNode<T>>
public static class LinkedList.JavaUtilIterator<T extends LinkedListNode<T>> extends Object implements Iterator<T>, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JavaUtilIterator()
JavaUtilIterator(LinkedList<T> list)
JavaUtilIterator(LinkedList<T> list, boolean immutable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
void
readExternal(ObjectInput in)
void
remove()
void
writeExternal(ObjectOutput out)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
JavaUtilIterator
public JavaUtilIterator()
-
JavaUtilIterator
public JavaUtilIterator(LinkedList<T> list)
-
JavaUtilIterator
public JavaUtilIterator(LinkedList<T> list, boolean immutable)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<T extends LinkedListNode<T>>
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<T extends LinkedListNode<T>>
-
-