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:
ray.j.greenwell
2009-12-10 19:58:35 +00:00
parent 6819b85c66
commit 2d20fd3454
@@ -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();
}
};
}