fr.dyade.aaa.agent
Class ServersHT.Enumerator

java.lang.Object
  extended by fr.dyade.aaa.agent.ServersHT.Enumerator
All Implemented Interfaces:
java.util.Enumeration
Enclosing class:
ServersHT

private class ServersHT.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)  ServersHT.ServerDescEntry entry
           
protected  int expectedModCount
          The modCount value that the iterator believes that the backing List should have.
(package private)  int index
           
(package private)  ServersHT.ServerDescEntry lastReturned
           
(package private)  ServersHT.ServerDescEntry[] table
           
(package private)  int type
           
 
Constructor Summary
ServersHT.Enumerator(int type)
           
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

ServersHT.ServerDescEntry[] table

index

int index

entry

ServersHT.ServerDescEntry entry

lastReturned

ServersHT.ServerDescEntry lastReturned

type

int type

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

ServersHT.Enumerator

ServersHT.Enumerator(int type)
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


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.