For debugging, an Interval's toString() should be informative.
The RunBuddy posted to a RunQueue will call its Interval's toString() method. If an Interval is created with a Runnable, let's call the Runnable's toString(). We could also add a form of create() that takes a String for the name... git-svn-id: https://samskivert.googlecode.com/svn/trunk@2676 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -55,6 +55,10 @@ public abstract class Interval
|
||||
@Override public void expired () {
|
||||
onExpired.run();
|
||||
}
|
||||
|
||||
@Override public void toString () {
|
||||
return onExpired.toString();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -71,6 +75,10 @@ public abstract class Interval
|
||||
@Override public void expired () {
|
||||
onExpired.run();
|
||||
}
|
||||
|
||||
@Override public void toString () {
|
||||
return onExpired.toString();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user