Class TextArrayObserver

java.lang.Object
  extended by TextArrayObserver
All Implemented Interfaces:
java.util.Observer

public class TextArrayObserver
extends java.lang.Object
implements java.util.Observer

This class implements a textual observer for the SortArray objects.
The output is written to a terminal.

Version:
1
Author:
U. Seyer

Field Summary
(package private)  int[] f
          the type casted array for the observer object
 
Constructor Summary
TextArrayObserver()
           
 
Method Summary
 void update(java.util.Observable o, java.lang.Object obj)
          This method is executed if the Observable set the changed attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

f

int[] f
the type casted array for the observer object

Constructor Detail

TextArrayObserver

public TextArrayObserver()
Method Detail

update

public void update(java.util.Observable o,
                   java.lang.Object obj)
This method is executed if the Observable set the changed attribute.
The given object is casted to an integer array and the array values
are written in indexorder to the terminal.
Each line ends with a carriage return.

Specified by:
update in interface java.util.Observer