edu.rice.cs.util
Class ReaderWriterLockTest.PrintCommand

java.lang.Object
  extended by edu.rice.cs.util.ReaderWriterLockTest.PrintCommand
Enclosing class:
ReaderWriterLockTest

public class ReaderWriterLockTest.PrintCommand
extends Object

Command pattern class to print to a buffer.


Constructor Summary
ReaderWriterLockTest.PrintCommand(String msg, StringBuilder buf)
          Creates a new command to print to a buffer during a read or write.
 
Method Summary
 void print()
          Prints the message to the buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderWriterLockTest.PrintCommand

public ReaderWriterLockTest.PrintCommand(String msg,
                                         StringBuilder buf)
Creates a new command to print to a buffer during a read or write.

Method Detail

print

public void print()
Prints the message to the buffer.