Public Member Functions | Protected Attributes
utils.MSortedCollection Class Reference

List of all members.

Public Member Functions

void addAllElements (ArrayList v)
void addElement (MSortedElementInterface element)
Iterator elements ()
Iterator elementsInverse ()
ArrayList elementsVector ()
ArrayList elementsVectorInverse ()
 MSortedCollection ()
void removeAllElements ()
void removeElement (MSortedElementInterface element)
int size ()

Protected Attributes

int elementCount = 0
MSortedCollectionNode topNode = null

Detailed Description

This class implements a sorted collection allowing to add and remove object. Every object has to implement a method greater.

Version:
1.0, Date 10.05.2000
Author:
Franz Wotawa
See also:
utils.MSortedElementInterface

Definition at line 38 of file MSortedCollection.java.


Constructor & Destructor Documentation

This method creates a new instance.

Returns:
A new instance

Definition at line 46 of file MSortedCollection.java.


Member Function Documentation

void utils.MSortedCollection.addAllElements ( ArrayList  v) [inline]

This method adds a vector of elements to the collection.

Parameters:
element,asorted collection element.

Definition at line 61 of file MSortedCollection.java.

This method adds a new element to the collection.

Parameters:
element,asorted collection element.

Definition at line 53 of file MSortedCollection.java.

Iterator utils.MSortedCollection.elements ( ) [inline]

This method is for returning an enumeration of elements.

Returns:
all elements as Enumeration

Definition at line 92 of file MSortedCollection.java.

This method is for returning an enumeration of elements in inverse order.

Returns:
all elements as Enumeration

Definition at line 104 of file MSortedCollection.java.

Definition at line 96 of file MSortedCollection.java.

Definition at line 108 of file MSortedCollection.java.

This method removes all elements from self.

Definition at line 77 of file MSortedCollection.java.

This method removes the given element from the collection.

Parameters:
element,asorted collection element.

Definition at line 72 of file MSortedCollection.java.

int utils.MSortedCollection.size ( ) [inline]

This method answers the number of elements stored in self.

Returns:
an integer

Definition at line 85 of file MSortedCollection.java.


Member Data Documentation

Definition at line 40 of file MSortedCollection.java.

Definition at line 41 of file MSortedCollection.java.


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


tug_ist_diagnosis_engine
Author(s): Safdar Zaman, Gerald Steinbauer
autogenerated on Mon Jan 6 2014 11:51:16