Back to index

moin  1.9.0~rc2
Public Member Functions | Package Functions | Package Attributes
Acme.IntHashtableEnumerator Class Reference
Collaboration diagram for Acme.IntHashtableEnumerator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean hasMoreElements ()
Object nextElement ()

Package Functions

 IntHashtableEnumerator (IntHashtableEntry table[], boolean keys)

Package Attributes

boolean keys
int index
IntHashtableEntry table []
IntHashtableEntry entry

Detailed Description

Definition at line 360 of file IntHashtable.java.


Constructor & Destructor Documentation

Acme.IntHashtableEnumerator.IntHashtableEnumerator ( IntHashtableEntry  table[],
boolean  keys 
) [inline, package]

Definition at line 367 of file IntHashtable.java.

       {
       this.table = table;
       this.keys = keys;
       this.index = table.length;
       }

Member Function Documentation

Definition at line 374 of file IntHashtable.java.

       {
       if ( entry != null )
           return true;
       while ( index-- > 0 )
           if ( ( entry = table[index] ) != null )
              return true;
       return false;
       }

Definition at line 384 of file IntHashtable.java.

       {
       if ( entry == null )
           while ( ( index-- > 0 ) && ( ( entry = table[index] ) == null ) )
              ;
       if ( entry != null )
           {
           IntHashtableEntry e = entry;
           entry = e.next;
           return keys ? new Integer( e.key ) : e.value;
           }
       throw new NoSuchElementException( "IntHashtableEnumerator" );
       }

Member Data Documentation

Definition at line 365 of file IntHashtable.java.

Definition at line 363 of file IntHashtable.java.

Definition at line 362 of file IntHashtable.java.

Definition at line 364 of file IntHashtable.java.


The documentation for this class was generated from the following file: