edu.rice.cs.util
Class ReaderWriterLockTest.PrintCommand
java.lang.Object
edu.rice.cs.util.ReaderWriterLockTest.PrintCommand
- Enclosing class:
- ReaderWriterLockTest
public class ReaderWriterLockTest.PrintCommand
- extends Object
Command pattern class to print to a buffer.
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 |
ReaderWriterLockTest.PrintCommand
public ReaderWriterLockTest.PrintCommand(String msg,
StringBuilder buf)
- Creates a new command to print to a buffer during a read or write.
print
public void print()
- Prints the message to the buffer.