fr.dyade.aaa.common.stream
Class Properties.Enumerator
java.lang.Object
fr.dyade.aaa.common.stream.Properties.Enumerator
- All Implemented Interfaces:
- java.util.Enumeration
- Enclosing class:
- Properties
private class Properties.Enumerator
- extends java.lang.Object
- implements java.util.Enumeration
A hashtable enumerator class. This class implements both the
Enumeration and Iterator interfaces, but individual instances
can be created with the Iterator methods disabled. This is necessary
to avoid unintentionally increasing the capabilities granted a user
by passing an Enumeration.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
Properties.Entry[] table
index
int index
entry
Properties.Entry entry
lastReturned
Properties.Entry lastReturned
type
int type
iterator
boolean iterator
- Indicates whether this Enumerator is serving as an Iterator
or an Enumeration. (true -> Iterator).
expectedModCount
protected int expectedModCount
- The modCount value that the iterator believes that the backing
List should have. If this expectation is violated, the iterator
has detected concurrent modification.
Properties.Enumerator
Properties.Enumerator(int type,
boolean iterator)
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration
hasNext
public boolean hasNext()
next
public java.lang.Object next()
remove
public void remove()
Copyright © 2010 ScalAgent D.T.. All Rights Reserved.