ikg.eleven.sortarray
Class TextArrayObserver

java.lang.Object
  extended by ikg.eleven.sortarray.TextArrayObserver

public class TextArrayObserver
extends java.lang.Object

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


Constructor Summary
TextArrayObserver()
           
 
Method Summary
 void update(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
 

Constructor Detail

TextArrayObserver

public TextArrayObserver()
Method Detail

update

public void update(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.