Simpler method naming in Timeout

This commit is contained in:
Trustin Lee 2012-12-26 13:50:01 +09:00
parent 6b9f7065a2
commit 85e1684084
2 changed files with 4 additions and 4 deletions

View File

@ -589,12 +589,12 @@ public class HashedWheelTimer implements Timer {
}
@Override
public Timer getTimer() {
public Timer timer() {
return HashedWheelTimer.this;
}
@Override
public TimerTask getTask() {
public TimerTask task() {
return task;
}

View File

@ -24,12 +24,12 @@ public interface Timeout {
/**
* Returns the {@link Timer} that created this handle.
*/
Timer getTimer();
Timer timer();
/**
* Returns the {@link TimerTask} which is associated with this handle.
*/
TimerTask getTask();
TimerTask task();
/**
* Returns {@code true} if and only if the {@link TimerTask} associated