fr.dyade.aaa.common.stream
Class Properties.Enumerator

java.lang.Object
  extended by 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.


Field Summary
(package private)  Properties.Entry entry
           
protected  int expectedModCount
          The modCount value that the iterator believes that the backing List should have.
(package private)  int index
           
(package private)  boolean iterator
          Indicates whether this Enumerator is serving as an Iterator or an Enumeration.
(package private)  Properties.Entry lastReturned
           
(package private)  Properties.Entry[] table
           
(package private)  int type
           
 
Constructor Summary
Properties.Enumerator(int type, boolean iterator)
           
 
Method Summary
 boolean hasMoreElements()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 java.lang.Object nextElement()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

Properties.Enumerator

Properties.Enumerator(int type,
                      boolean iterator)
Method Detail

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.