Back to index

moin  1.9.0~rc2
Public Member Functions | Package Attributes
CH.ifa.draw.util.ReverseVectorEnumerator Class Reference

An Enumeration that enumerates a vector back (size-1) to front (0). More...

Collaboration diagram for CH.ifa.draw.util.ReverseVectorEnumerator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ReverseVectorEnumerator (Vector v)
boolean hasMoreElements ()
Object nextElement ()

Package Attributes

Vector vector
int count

Detailed Description

An Enumeration that enumerates a vector back (size-1) to front (0).

Definition at line 13 of file ReverseVectorEnumerator.java.


Constructor & Destructor Documentation

Definition at line 19 of file ReverseVectorEnumerator.java.

                                             {
           vector = v;
           count = vector.size() - 1;
    }

Member Function Documentation

Definition at line 24 of file ReverseVectorEnumerator.java.

                                     {
           return count >= 0;
    }

Here is the caller graph for this function:

Definition at line 28 of file ReverseVectorEnumerator.java.

                                {
           if (count >= 0) {
                  return vector.elementAt(count--);
           }
           throw new NoSuchElementException("ReverseVectorEnumerator");
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 17 of file ReverseVectorEnumerator.java.

Definition at line 16 of file ReverseVectorEnumerator.java.


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